@navikt/ds-react 2.0.5 → 2.0.7

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 (40) hide show
  1. package/cjs/date/DateInput.js +1 -1
  2. package/cjs/date/monthpicker/MonthButton.js +0 -1
  3. package/esm/accordion/AccordionContent.d.ts +1 -1
  4. package/esm/accordion/AccordionHeader.d.ts +1 -1
  5. package/esm/accordion/AccordionItem.d.ts +1 -1
  6. package/esm/chat/Bubble.d.ts +1 -1
  7. package/esm/date/DateInput.d.ts +1 -1
  8. package/esm/date/DateInput.js +1 -1
  9. package/esm/date/DateInput.js.map +1 -1
  10. package/esm/date/datepicker/DatePicker.d.ts +2 -2
  11. package/esm/date/datepicker/DatePickerStandalone.d.ts +2 -2
  12. package/esm/date/hooks/useDatepicker.d.ts +1 -1
  13. package/esm/date/hooks/useMonthPicker.d.ts +1 -1
  14. package/esm/date/hooks/useRangeDatepicker.d.ts +1 -1
  15. package/esm/date/hooks/useSharedMonthContext.d.ts +1 -1
  16. package/esm/date/monthpicker/MonthButton.js +0 -1
  17. package/esm/date/monthpicker/MonthButton.js.map +1 -1
  18. package/esm/date/monthpicker/MonthPickerStandalone.d.ts +1 -1
  19. package/esm/date/utils/is-match.d.ts +1 -1
  20. package/esm/form/Fieldset/Fieldset.d.ts +1 -1
  21. package/esm/form/error-summary/ErrorSummaryItem.d.ts +1 -1
  22. package/esm/form/search/Search.d.ts +1 -1
  23. package/esm/form/search/SearchButton.d.ts +1 -1
  24. package/esm/grid/Cell.d.ts +1 -1
  25. package/esm/link-panel/LinkPanelDescription.d.ts +1 -1
  26. package/esm/link-panel/LinkPanelTitle.d.ts +1 -1
  27. package/esm/loader/Loader.d.ts +1 -1
  28. package/esm/modal/Modal.d.ts +1 -1
  29. package/esm/modal/ModalContent.d.ts +1 -1
  30. package/esm/pagination/PaginationItem.d.ts +1 -1
  31. package/esm/panel/Panel.d.ts +1 -1
  32. package/esm/popover/PopoverContent.d.ts +1 -1
  33. package/esm/tabs/Tab.d.ts +1 -1
  34. package/esm/tabs/TabList.d.ts +1 -1
  35. package/esm/tabs/TabPanel.d.ts +1 -1
  36. package/esm/toggle-group/ToggleItem.d.ts +1 -1
  37. package/esm/util/AnimateHeight.d.ts +1 -1
  38. package/package.json +2 -3
  39. package/src/date/DateInput.tsx +0 -1
  40. package/src/date/monthpicker/MonthButton.tsx +0 -1
@@ -69,7 +69,7 @@ const DateInput = (0, react_1.forwardRef)((props, ref) => {
69
69
  "navds-sr-only": hideLabel,
70
70
  }), id: inputDescriptionId, size: size }, description)),
71
71
  react_1.default.createElement("div", { className: "navds-date__field-wrapper" },
72
- react_1.default.createElement("input", Object.assign({ ref: ref }, (0, __1.omit)(rest, ["error", "errorId", "size"]), inputProps, { autoComplete: "off", "aria-controls": ariaId, className: (0, clsx_1.default)(className, "navds-date__field-input", "navds-text-field__input", "navds-body-short", `navds-body-${size}`), size: 14 })),
72
+ react_1.default.createElement("input", Object.assign({ ref: ref }, (0, __1.omit)(rest, ["error", "errorId", "size"]), inputProps, { autoComplete: "off", "aria-controls": ariaId, className: (0, clsx_1.default)("navds-date__field-input", "navds-text-field__input", "navds-body-short", `navds-body-${size}`), size: 14 })),
73
73
  react_1.default.createElement(__1.Button, { variant: "tertiary", type: "button", size: "small", onClick: () => onOpen(), className: "navds-date__field-button", tabIndex: open ? -1 : 0, disabled: inputProps.disabled, icon: react_1.default.createElement(ds_icons_1.Calender, { title: open
74
74
  ? conditionalVariables.iconTitle.close
75
75
  : conditionalVariables.iconTitle.open }) })),
@@ -69,7 +69,6 @@ const MonthButton = ({ month, months, focus, setFocus, tabRoot, setTabRoot, }) =
69
69
  }), tabIndex: tabRoot && (0, isSameMonth_1.default)(month, (0, setYear_1.default)(tabRoot, year.getFullYear()))
70
70
  ? 0
71
71
  : -1, onKeyDown: (e) => {
72
- e.preventDefault();
73
72
  const next = (0, utils_1.nextEnabled)(months, e.key, disabled, month, toYear, year, hasDropdown, fromDate, toDate);
74
73
  setFocus(next);
75
74
  setTabRoot(next);
@@ -5,6 +5,6 @@ export interface AccordionContentProps extends React.HTMLAttributes<HTMLDivEleme
5
5
  */
6
6
  children: React.ReactNode;
7
7
  }
8
- export declare type AccordionContentType = React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
8
+ export type AccordionContentType = React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const AccordionContent: AccordionContentType;
10
10
  export default AccordionContent;
@@ -5,6 +5,6 @@ export interface AccordionHeaderProps extends React.ButtonHTMLAttributes<HTMLBut
5
5
  */
6
6
  children: React.ReactNode;
7
7
  }
8
- export declare type AccordionHeaderType = React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLButtonElement>>;
8
+ export type AccordionHeaderType = React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLButtonElement>>;
9
9
  declare const AccordionHeader: AccordionHeaderType;
10
10
  export default AccordionHeader;
@@ -16,7 +16,7 @@ export interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement>
16
16
  */
17
17
  defaultOpen?: boolean;
18
18
  }
19
- export declare type AccordionItemType = React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
19
+ export type AccordionItemType = React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
20
20
  export interface AccordionItemContextProps {
21
21
  open: boolean;
22
22
  toggleOpen: () => void;
@@ -17,6 +17,6 @@ export interface BubbleProps extends HTMLAttributes<HTMLDivElement> {
17
17
  */
18
18
  backgroundColor?: string;
19
19
  }
20
- export declare type BubbleType = React.ForwardRefExoticComponent<BubbleProps & React.RefAttributes<HTMLDivElement>>;
20
+ export type BubbleType = React.ForwardRefExoticComponent<BubbleProps & React.RefAttributes<HTMLDivElement>>;
21
21
  declare const Bubble: BubbleType;
22
22
  export default Bubble;
@@ -20,6 +20,6 @@ export interface DateInputProps extends FormFieldProps, Omit<InputHTMLAttributes
20
20
  */
21
21
  variant?: "datepicker" | "monthpicker";
22
22
  }
23
- export declare type DateInputType = React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<HTMLInputElement>>;
23
+ export type DateInputType = React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<HTMLInputElement>>;
24
24
  export declare const DatePickerInput: DateInputType;
25
25
  export declare const MonthPickerInput: DateInputType;
@@ -40,7 +40,7 @@ const DateInput = forwardRef((props, ref) => {
40
40
  "navds-sr-only": hideLabel,
41
41
  }), id: inputDescriptionId, size: size }, description)),
42
42
  React.createElement("div", { className: "navds-date__field-wrapper" },
43
- React.createElement("input", Object.assign({ ref: ref }, omit(rest, ["error", "errorId", "size"]), inputProps, { autoComplete: "off", "aria-controls": ariaId, className: cl(className, "navds-date__field-input", "navds-text-field__input", "navds-body-short", `navds-body-${size}`), size: 14 })),
43
+ React.createElement("input", Object.assign({ ref: ref }, omit(rest, ["error", "errorId", "size"]), inputProps, { autoComplete: "off", "aria-controls": ariaId, className: cl("navds-date__field-input", "navds-text-field__input", "navds-body-short", `navds-body-${size}`), size: 14 })),
44
44
  React.createElement(Button, { variant: "tertiary", type: "button", size: "small", onClick: () => onOpen(), className: "navds-date__field-button", tabIndex: open ? -1 : 0, disabled: inputProps.disabled, icon: React.createElement(Calender, { title: open
45
45
  ? conditionalVariables.iconTitle.close
46
46
  : conditionalVariables.iconTitle.open }) })),
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.js","sourceRoot":"","sources":["../../src/date/DateInput.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAuB,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,IAAI,CA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AAC,oBAAC,SAAS,oBAAK,KAAK,IAAE,OAAO,EAAC,aAAa,EAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { DateRange, DayPickerBase, Matcher } from "react-day-picker";
3
3
  import { DateInputType } from "../DateInput";
4
4
  import { DatePickerStandaloneType } from "./DatePickerStandalone";
5
- export declare type ConditionalModeProps = {
5
+ export type ConditionalModeProps = {
6
6
  mode?: "single";
7
7
  onSelect?: (val?: Date) => void;
8
8
  selected?: Date;
@@ -88,7 +88,7 @@ export interface DatePickerDefaultProps extends Omit<React.HTMLAttributes<HTMLDi
88
88
  */
89
89
  strategy?: "absolute" | "fixed";
90
90
  }
91
- export declare type DatePickerProps = DatePickerDefaultProps & ConditionalModeProps;
91
+ export type DatePickerProps = DatePickerDefaultProps & ConditionalModeProps;
92
92
  interface DatePickerComponent extends React.ForwardRefExoticComponent<DatePickerProps> {
93
93
  Standalone: DatePickerStandaloneType;
94
94
  Input: DateInputType;
@@ -6,7 +6,7 @@ interface DatePickerStandaloneDefaultProps extends Omit<DatePickerDefaultProps,
6
6
  */
7
7
  className?: string;
8
8
  }
9
- export declare type DatePickerStandaloneProps = DatePickerStandaloneDefaultProps & ConditionalModeProps;
10
- export declare type DatePickerStandaloneType = React.ForwardRefExoticComponent<DatePickerStandaloneProps & React.RefAttributes<HTMLDivElement>>;
9
+ export type DatePickerStandaloneProps = DatePickerStandaloneDefaultProps & ConditionalModeProps;
10
+ export type DatePickerStandaloneType = React.ForwardRefExoticComponent<DatePickerStandaloneProps & React.RefAttributes<HTMLDivElement>>;
11
11
  export declare const DatePickerStandalone: DatePickerStandaloneType;
12
12
  export default DatePickerStandalone;
@@ -50,7 +50,7 @@ interface UseDatepickerValue {
50
50
  */
51
51
  setSelected: (date?: Date) => void;
52
52
  }
53
- export declare type DateValidationT = {
53
+ export type DateValidationT = {
54
54
  isDisabled: boolean;
55
55
  isWeekend: boolean;
56
56
  isEmpty: boolean;
@@ -46,7 +46,7 @@ interface UseMonthPickerValue {
46
46
  */
47
47
  reset: () => void;
48
48
  }
49
- export declare type MonthValidationT = {
49
+ export type MonthValidationT = {
50
50
  isDisabled: boolean;
51
51
  isEmpty: boolean;
52
52
  isInvalid: boolean;
@@ -2,7 +2,7 @@ import { DateRange } from "react-day-picker";
2
2
  import { DateInputProps } from "../DateInput";
3
3
  import { DatePickerProps } from "../datepicker/DatePicker";
4
4
  import { DateValidationT, UseDatepickerOptions } from "./useDatepicker";
5
- export declare type RangeValidationT = {
5
+ export type RangeValidationT = {
6
6
  from: DateValidationT;
7
7
  to: DateValidationT & {
8
8
  isBeforeFrom?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Matcher } from "../utils";
3
- export declare type SharedMonthContextType = {
3
+ export type SharedMonthContextType = {
4
4
  hasDropdown: boolean;
5
5
  year: Date;
6
6
  toYear: (date: Date) => void;
@@ -40,7 +40,6 @@ export const MonthButton = ({ month, months, focus, setFocus, tabRoot, setTabRoo
40
40
  }), tabIndex: tabRoot && isSameMonth(month, setYear(tabRoot, year.getFullYear()))
41
41
  ? 0
42
42
  : -1, onKeyDown: (e) => {
43
- e.preventDefault();
44
43
  const next = nextEnabled(months, e.key, disabled, month, toYear, year, hasDropdown, fromDate, toDate);
45
44
  setFocus(next);
46
45
  setTabRoot(next);
@@ -1 +1 @@
1
- {"version":3,"file":"MonthButton.js","sourceRoot":"","sources":["../../../src/date/monthpicker/MonthButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,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CAAC"}
@@ -6,6 +6,6 @@ export interface MonthPickerStandaloneProps extends Omit<MonthPickerProps, "open
6
6
  */
7
7
  className?: string;
8
8
  }
9
- export declare type MonthPickerStandaloneType = React.ForwardRefExoticComponent<MonthPickerStandaloneProps & React.RefAttributes<HTMLDivElement>>;
9
+ export type MonthPickerStandaloneType = React.ForwardRefExoticComponent<MonthPickerStandaloneProps & React.RefAttributes<HTMLDivElement>>;
10
10
  export declare const MonthPickerStandalone: React.ForwardRefExoticComponent<MonthPickerStandaloneProps & React.RefAttributes<HTMLDivElement>>;
11
11
  export default MonthPickerStandalone;
@@ -1,4 +1,4 @@
1
1
  import { DateAfter, DateBefore, DateRange } from "react-day-picker";
2
- export declare type Matcher = ((date: Date) => boolean) | Date | Date[] | DateRange | DateBefore | DateAfter;
2
+ export type Matcher = ((date: Date) => boolean) | Date | Date[] | DateRange | DateBefore | DateAfter;
3
3
  export declare function isMatch(day: Date, matchers: Matcher[]): boolean;
4
4
  export declare function isDateInRange(date: Date, range: DateRange): boolean;
@@ -1,6 +1,6 @@
1
1
  import React, { FieldsetHTMLAttributes } from "react";
2
2
  import { FormFieldProps } from "../useFormField";
3
- export declare type FieldsetContextProps = {
3
+ export type FieldsetContextProps = {
4
4
  /**
5
5
  * Error message applied to element,
6
6
  */
@@ -6,6 +6,6 @@ export interface ErrorSummaryItemProps extends React.AnchorHTMLAttributes<HTMLAn
6
6
  */
7
7
  children: React.ReactNode;
8
8
  }
9
- export declare type ErrorSummaryItemType = OverridableComponent<ErrorSummaryItemProps, HTMLAnchorElement>;
9
+ export type ErrorSummaryItemType = OverridableComponent<ErrorSummaryItemProps, HTMLAnchorElement>;
10
10
  export declare const ErrorSummaryItem: ErrorSummaryItemType;
11
11
  export default ErrorSummaryItem;
@@ -1,7 +1,7 @@
1
1
  import React, { InputHTMLAttributes } from "react";
2
2
  import { FormFieldProps } from "../useFormField";
3
3
  import { SearchButtonType } from "./SearchButton";
4
- export declare type SearchClearEvent = {
4
+ export type SearchClearEvent = {
5
5
  trigger: "Click";
6
6
  event: React.MouseEvent<HTMLButtonElement, MouseEvent>;
7
7
  } | {
@@ -6,6 +6,6 @@ export interface SearchButtonProps extends Omit<ButtonProps, "size" | "children"
6
6
  */
7
7
  children?: React.ReactNode;
8
8
  }
9
- export declare type SearchButtonType = React.ForwardRefExoticComponent<SearchButtonProps & React.RefAttributes<HTMLButtonElement>>;
9
+ export type SearchButtonType = React.ForwardRefExoticComponent<SearchButtonProps & React.RefAttributes<HTMLButtonElement>>;
10
10
  declare const SearchButton: SearchButtonType;
11
11
  export default SearchButton;
@@ -1,5 +1,5 @@
1
1
  import React, { HTMLAttributes } from "react";
2
- declare type Column = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
2
+ type Column = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
3
3
  export interface CellProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * Cell content
@@ -2,6 +2,6 @@ import React from "react";
2
2
  interface LinkPanelDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  children: React.ReactNode;
4
4
  }
5
- export declare type LinkPanelDescriptionType = React.ForwardRefExoticComponent<LinkPanelDescriptionProps & React.RefAttributes<HTMLDivElement>>;
5
+ export type LinkPanelDescriptionType = React.ForwardRefExoticComponent<LinkPanelDescriptionProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export declare const LinkPanelDescription: LinkPanelDescriptionType;
7
7
  export {};
@@ -3,6 +3,6 @@ import { OverridableComponent } from "..";
3
3
  interface LinkPanelTitleProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  children: React.ReactNode;
5
5
  }
6
- export declare type LinkPanelTitleType = OverridableComponent<LinkPanelTitleProps, HTMLDivElement>;
6
+ export type LinkPanelTitleType = OverridableComponent<LinkPanelTitleProps, HTMLDivElement>;
7
7
  export declare const LinkPanelTitle: LinkPanelTitleType;
8
8
  export {};
@@ -22,5 +22,5 @@ export interface LoaderProps extends SVGProps<SVGSVGElement> {
22
22
  */
23
23
  variant?: "neutral" | "interaction" | "inverted";
24
24
  }
25
- export declare const Loader: React.ForwardRefExoticComponent<Pick<LoaderProps, "string" | "transparent" | "end" | "local" | "color" | "clip" | "size" | "style" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "title" | "path" | "key" | "crossOrigin" | "href" | "max" | "media" | "method" | "min" | "name" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "target" | "type" | "accentHeight" | "accumulate" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant"> & React.RefAttributes<SVGSVGElement>>;
25
+ export declare const Loader: React.ForwardRefExoticComponent<Pick<LoaderProps, "string" | "transparent" | "end" | "local" | "color" | "clip" | "size" | "style" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "title" | "path" | "key" | "crossOrigin" | "href" | "max" | "media" | "method" | "min" | "name" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "target" | "type" | "accentHeight" | "accumulate" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant"> & React.RefAttributes<SVGSVGElement>>;
26
26
  export default Loader;
@@ -52,7 +52,7 @@ export interface ModalProps {
52
52
  interface ModalComponent extends ModalLifecycle, React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<ReactModal>> {
53
53
  Content: ModalContentType;
54
54
  }
55
- declare type ModalLifecycle = {
55
+ type ModalLifecycle = {
56
56
  setAppElement: (element: any) => void;
57
57
  };
58
58
  export declare const Modal: ModalComponent;
@@ -5,6 +5,6 @@ export interface ModalContentProps extends React.HTMLAttributes<HTMLDivElement>
5
5
  */
6
6
  children: React.ReactNode;
7
7
  }
8
- export declare type ModalContentType = React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<HTMLDivElement>>;
8
+ export type ModalContentType = React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const ModalContent: ModalContentType;
10
10
  export default ModalContent;
@@ -17,6 +17,6 @@ export interface PaginationItemProps extends ButtonProps {
17
17
  */
18
18
  size?: "medium" | "small" | "xsmall";
19
19
  }
20
- export declare type PaginationItemType = OverridableComponent<PaginationItemProps, HTMLAnchorElement>;
20
+ export type PaginationItemType = OverridableComponent<PaginationItemProps, HTMLAnchorElement>;
21
21
  export declare const Item: PaginationItemType;
22
22
  export default Item;
@@ -11,6 +11,6 @@ export interface PanelProps extends React.HTMLAttributes<HTMLElement> {
11
11
  */
12
12
  border?: boolean;
13
13
  }
14
- export declare type PanelType = OverridableComponent<PanelProps, HTMLElement>;
14
+ export type PanelType = OverridableComponent<PanelProps, HTMLElement>;
15
15
  export declare const Panel: PanelType;
16
16
  export default Panel;
@@ -5,6 +5,6 @@ export interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement
5
5
  */
6
6
  children: React.ReactNode;
7
7
  }
8
- export declare type PopoverContentType = React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
8
+ export type PopoverContentType = React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const PopoverContent: PopoverContentType;
10
10
  export default PopoverContent;
package/esm/tabs/Tab.d.ts CHANGED
@@ -14,6 +14,6 @@ export interface TabProps extends Omit<React.HTMLAttributes<HTMLButtonElement>,
14
14
  */
15
15
  value: string;
16
16
  }
17
- export declare type TabType = OverridableComponent<TabProps, HTMLButtonElement>;
17
+ export type TabType = OverridableComponent<TabProps, HTMLButtonElement>;
18
18
  export declare const Tab: TabType;
19
19
  export default Tab;
@@ -5,6 +5,6 @@ export interface TabListProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  */
6
6
  children: React.ReactNode;
7
7
  }
8
- export declare type TabListType = React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
8
+ export type TabListType = React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
9
9
  export declare const TabList: TabListType;
10
10
  export default TabList;
@@ -9,6 +9,6 @@ export interface TabPanelProps extends React.HTMLAttributes<HTMLDivElement> {
9
9
  */
10
10
  value: string;
11
11
  }
12
- export declare type TabPanelType = React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<HTMLDivElement>>;
12
+ export type TabPanelType = React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<HTMLDivElement>>;
13
13
  declare const TabPanel: TabPanelType;
14
14
  export default TabPanel;
@@ -9,6 +9,6 @@ export interface ToggleItemProps extends React.HTMLAttributes<HTMLButtonElement>
9
9
  */
10
10
  value: string;
11
11
  }
12
- export declare type ToggleItemType = React.ForwardRefExoticComponent<ToggleItemProps & React.RefAttributes<HTMLButtonElement>>;
12
+ export type ToggleItemType = React.ForwardRefExoticComponent<ToggleItemProps & React.RefAttributes<HTMLButtonElement>>;
13
13
  declare const ToggleItem: ToggleItemType;
14
14
  export default ToggleItem;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type Height = "auto" | number | `${number}%`;
2
+ export type Height = "auto" | number | `${number}%`;
3
3
  interface AnimateHeightProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  duration?: number;
5
5
  easing?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Aksel react-components for NAV designsystem",
5
5
  "author": "Aksel | NAV designsystem team",
6
6
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@floating-ui/react-dom-interactions": "0.9.2",
40
- "@navikt/ds-icons": "^2.0.5",
40
+ "@navikt/ds-icons": "^2.0.7",
41
41
  "@radix-ui/react-tabs": "1.0.0",
42
42
  "@radix-ui/react-toggle-group": "1.0.0",
43
43
  "clsx": "^1.2.1",
@@ -52,7 +52,6 @@
52
52
  "@testing-library/user-event": "^14.2.0",
53
53
  "@types/faker": "5.5.8",
54
54
  "@types/jest": "^29.0.0",
55
- "@types/node": "^17.0.35",
56
55
  "@types/react-modal": "^3.13.1",
57
56
  "concurrently": "7.2.1",
58
57
  "copyfiles": "^2.4.1",
@@ -108,7 +108,6 @@ const DateInput: DateInputType = forwardRef<HTMLInputElement, DateInputProps>(
108
108
  autoComplete="off"
109
109
  aria-controls={ariaId}
110
110
  className={cl(
111
- className,
112
111
  "navds-date__field-input",
113
112
  "navds-text-field__input",
114
113
  "navds-body-short",
@@ -74,7 +74,6 @@ export const MonthButton = ({
74
74
  : -1
75
75
  }
76
76
  onKeyDown={(e) => {
77
- e.preventDefault();
78
77
  const next = nextEnabled(
79
78
  months,
80
79
  e.key,