@entur/form 5.4.15 → 5.4.16

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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './BaseFormControl.scss';
3
3
  import { VariantType } from './VariantProvider';
4
- export declare type BaseFormControlProps = {
4
+ export type BaseFormControlProps = {
5
5
  /** Et skjemaelement med `eds-form-control`-klassen */
6
6
  children: React.ReactNode;
7
7
  /** Ekstra klassenavn */
@@ -1,6 +1,6 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import './Checkbox.scss';
3
- export declare type CheckboxProps = {
3
+ export type CheckboxProps = {
4
4
  /** Ekstra klassenavn */
5
5
  className?: string;
6
6
  /** Label for checkboxen, som vises ved høyre side. */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantType } from './VariantProvider';
3
3
  import './FeedbackText.scss';
4
- export declare type FeedbackTextProps = {
4
+ export type FeedbackTextProps = {
5
5
  /** Teksten som vises */
6
6
  children: React.ReactNode;
7
7
  /** Skjuler ikonet */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './Fieldset.scss';
3
- export declare type FieldsetProps = {
3
+ export type FieldsetProps = {
4
4
  /** Innholdet i felt-gruppen. */
5
5
  children: React.ReactNode;
6
6
  /** Ekstra klassenavn */
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type InputGroupContextType = {
2
+ type InputGroupContextType = {
3
3
  isFilled: boolean;
4
4
  setFilled: (e: boolean) => void;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './InputGroupLabel.scss';
3
- export declare type InputGroupLabelProps = {
3
+ export type InputGroupLabelProps = {
4
4
  label?: React.ReactNode;
5
5
  required?: boolean;
6
6
  labelTooltip?: string;
package/dist/Radio.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './Radio.scss';
3
- export declare type RadioProps = {
3
+ export type RadioProps = {
4
4
  /** Ekstra klassenavn */
5
5
  className?: string;
6
6
  /** Label til radio-button. Vises ved høyre side. */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type RadioGroupProps = {
2
+ export type RadioGroupProps = {
3
3
  /** Navnet til radiogruppen. */
4
4
  name: string;
5
5
  /** Overskrift over radiogruppen */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type RadioGroupContextProps = {
2
+ type RadioGroupContextProps = {
3
3
  name: string;
4
4
  onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
5
  value: string | null;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './RadioPanel.scss';
3
- export declare type RadioPanelProps = {
3
+ export type RadioPanelProps = {
4
4
  /** Verdien til RadioPanel */
5
5
  value: string;
6
6
  /** Hovedtittelen til RadioPanel */
package/dist/Switch.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './Switch.scss';
3
- export declare type SwitchProps = {
3
+ export type SwitchProps = {
4
4
  /** Ekstra klassenavn */
5
5
  className?: string;
6
6
  /** Label for Switch-en. */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantType } from './VariantProvider';
3
3
  import './TextArea.scss';
4
- export declare type TextAreaProps = {
4
+ export type TextAreaProps = {
5
5
  /** Ekstra klassenavn */
6
6
  className?: string;
7
7
  /** Valideringsvariant */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantType } from './VariantProvider';
3
3
  import './TextField.scss';
4
- export declare type TextFieldProps = {
4
+ export type TextFieldProps = {
5
5
  /** Tekst eller ikon som kommer før inputfeltet */
6
6
  prepend?: React.ReactNode;
7
7
  /** Tekst eller ikon som kommer etter inputfeltet */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './Switch.scss';
3
- export declare type TravelSwitchProps = {
3
+ export type TravelSwitchProps = {
4
4
  /** Ekstra klassenavn */
5
5
  className?: string;
6
6
  /** Om switchen er checked eller ikke */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare type VariantType = 'success' | 'error' | 'warning' | 'info';
3
- export declare type VariantProviderProps = {
2
+ export type VariantType = 'success' | 'error' | 'warning' | 'info';
3
+ export type VariantProviderProps = {
4
4
  variant?: VariantType;
5
5
  };
6
6
  export declare const VariantProvider: React.FC<VariantProviderProps>;