@norges-domstoler/dds-components 0.0.0-dev-20240902094424 → 0.0.0-dev-20240902123258

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.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as CSS from 'csstype';
3
3
  import { Property, StandardProperties } from 'csstype';
4
4
  import * as react from 'react';
5
- import react__default, { HTMLAttributes, ElementType, ReactNode, InputHTMLAttributes, PropsWithChildren, ComponentPropsWithoutRef, ComponentProps, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, ButtonHTMLAttributes, FocusEventHandler, MouseEventHandler, AriaRole, TextareaHTMLAttributes, ForwardRefExoticComponent, MouseEvent as MouseEvent$1, ChangeEvent, Ref, ReactElement, TdHTMLAttributes, ThHTMLAttributes } from 'react';
5
+ import react__default, { HTMLAttributes, ElementType, ReactNode, InputHTMLAttributes, PropsWithChildren, ComponentPropsWithoutRef, ComponentProps, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, ButtonHTMLAttributes, FocusEventHandler, MouseEventHandler, AriaRole, TextareaHTMLAttributes, ForwardRefExoticComponent, ChangeEvent, MouseEvent as MouseEvent$1, Ref, ReactElement, TdHTMLAttributes, ThHTMLAttributes } from 'react';
6
6
  import * as styled_components from 'styled-components';
7
7
  import { UseFloatingReturn, Strategy, Placement as Placement$1 } from '@floating-ui/react-dom';
8
8
  import { DateValue, AriaCalendarProps } from '@react-aria/calendar';
@@ -2347,11 +2347,9 @@ declare const ProgressTracker: ProgressTrackerComponent;
2347
2347
 
2348
2348
  type SearchSize = 'small' | 'medium' | 'large';
2349
2349
  type SearchButtonProps = {
2350
- onClick: (event: MouseEvent$1<HTMLButtonElement>) => void;
2351
2350
  label?: string;
2352
- loading?: boolean;
2353
- purpose?: 'primary' | 'secondary';
2354
- } & ButtonHTMLAttributes<HTMLButtonElement>;
2351
+ purpose?: ExtractStrict<ButtonPurpose, 'primary' | 'secondary'>;
2352
+ } & Pick<ButtonProps, 'loading' | 'loadingTooltip'> & ComponentProps<'button'>;
2355
2353
 
2356
2354
  type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
2357
2355
  /**Størrelsen på komponenten. */
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as CSS from 'csstype';
3
3
  import { Property, StandardProperties } from 'csstype';
4
4
  import * as react from 'react';
5
- import react__default, { HTMLAttributes, ElementType, ReactNode, InputHTMLAttributes, PropsWithChildren, ComponentPropsWithoutRef, ComponentProps, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, ButtonHTMLAttributes, FocusEventHandler, MouseEventHandler, AriaRole, TextareaHTMLAttributes, ForwardRefExoticComponent, MouseEvent as MouseEvent$1, ChangeEvent, Ref, ReactElement, TdHTMLAttributes, ThHTMLAttributes } from 'react';
5
+ import react__default, { HTMLAttributes, ElementType, ReactNode, InputHTMLAttributes, PropsWithChildren, ComponentPropsWithoutRef, ComponentProps, AnchorHTMLAttributes, LabelHTMLAttributes, RefCallback, RefObject, KeyboardEvent as KeyboardEvent$1, Dispatch, SetStateAction, SVGAttributes, ButtonHTMLAttributes, FocusEventHandler, MouseEventHandler, AriaRole, TextareaHTMLAttributes, ForwardRefExoticComponent, ChangeEvent, MouseEvent as MouseEvent$1, Ref, ReactElement, TdHTMLAttributes, ThHTMLAttributes } from 'react';
6
6
  import * as styled_components from 'styled-components';
7
7
  import { UseFloatingReturn, Strategy, Placement as Placement$1 } from '@floating-ui/react-dom';
8
8
  import { DateValue, AriaCalendarProps } from '@react-aria/calendar';
@@ -2347,11 +2347,9 @@ declare const ProgressTracker: ProgressTrackerComponent;
2347
2347
 
2348
2348
  type SearchSize = 'small' | 'medium' | 'large';
2349
2349
  type SearchButtonProps = {
2350
- onClick: (event: MouseEvent$1<HTMLButtonElement>) => void;
2351
2350
  label?: string;
2352
- loading?: boolean;
2353
- purpose?: 'primary' | 'secondary';
2354
- } & ButtonHTMLAttributes<HTMLButtonElement>;
2351
+ purpose?: ExtractStrict<ButtonPurpose, 'primary' | 'secondary'>;
2352
+ } & Pick<ButtonProps, 'loading' | 'loadingTooltip'> & ComponentProps<'button'>;
2355
2353
 
2356
2354
  type SearchProps = Pick<InputProps, 'tip' | 'label'> & {
2357
2355
  /**Størrelsen på komponenten. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norges-domstoler/dds-components",
3
- "version": "0.0.0-dev-20240902094424",
3
+ "version": "0.0.0-dev-20240902123258",
4
4
  "description": "React components used in Elsa - domstolenes designsystem",
5
5
  "author": "Elsa team",
6
6
  "license": "MIT",
@@ -55,8 +55,8 @@
55
55
  "typescript": "^5.5.4",
56
56
  "vite": "^5.4.2",
57
57
  "vitest": "^2.0.5",
58
- "@norges-domstoler/storybook-components": "0.0.9",
59
- "@norges-domstoler/dds-design-tokens": "6.0.0"
58
+ "@norges-domstoler/dds-design-tokens": "6.0.0",
59
+ "@norges-domstoler/storybook-components": "0.0.9"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@internationalized/date": "^3",