@entur/menu 5.2.1-beta.9 → 5.2.2

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,6 +1,5 @@
1
- import React from 'react';
2
- import './BreadcrumbNavigation.scss';
3
- import { PolymorphicComponentProps } from '@entur/utils';
1
+ import { default as React } from 'react';
2
+ import { PolymorphicComponentProps } from '../../utils';
4
3
  export type BreadcrumbItemOwnProps = {
5
4
  /** Komponenten som rendres
6
5
  * @default "a"
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import './BreadcrumbNavigation.scss';
1
+ import { default as React } from 'react';
3
2
  export type BreadcrumbNavigationProps = {
4
3
  /** Label for brødsmulestien.
5
4
  * @default 'Brødsmulesti'
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { SideNavigationProps } from './SideNavigation';
3
3
  type CollapsibleSideNavigationProps = SideNavigationProps & {
4
4
  /**Tilstand til menyen
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
- import { Placement } from '@entur/tooltip';
3
- import { PolymorphicComponentProps } from '@entur/utils';
4
- import './OverflowMenu.scss';
1
+ import { default as React } from 'react';
2
+ import { Placement } from '../../tooltip';
3
+ import { PolymorphicComponentProps } from '../../utils';
5
4
  export type OverflowMenuProps = {
6
5
  /** Menypunkter (OverflowMenuItem eller OverflowMenuLink) */
7
6
  children: React.ReactNode;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import './Pagination.scss';
1
+ import { default as React } from 'react';
3
2
  export type PaginationProps = {
4
3
  /** Ekstra klassenavn */
5
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export type PaginationInputProps = {
3
3
  currentPage: number;
4
4
  label?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export type PaginationPageProps = {
3
3
  /** Sidenummeret som er aktivt nå */
4
4
  children: React.ReactNode;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import './SideNavigation.scss';
1
+ import { default as React } from 'react';
3
2
  export type SideNavigationProps = {
4
3
  /** Ekstra klassenavn */
5
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export type SideNavigationGroupProps = {
3
3
  /** Skal menygruppen være ekspandert by default? Kun relevant om komponenten ikke er kontrollert
4
4
  * @default false
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { PolymorphicComponentProps } from '@entur/utils';
1
+ import { default as React } from 'react';
2
+ import { PolymorphicComponentProps } from '../../utils';
3
3
  type BaseSideNavigationItemOwnProps = {
4
4
  active?: boolean;
5
5
  as?: 'a' | 'button' | React.ElementType;
package/dist/Stepper.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import './Stepper.scss';
1
+ import { default as React } from 'react';
3
2
  export type StepperProps = {
4
3
  /** Liste med steg-navn i rekkefølge. */
5
4
  steps: string[];
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
- import './TopNavigationItem.scss';
3
- import { PolymorphicComponentProps } from '@entur/utils';
1
+ import { default as React } from 'react';
2
+ import { PolymorphicComponentProps } from '../../utils';
4
3
  export type TopNavigationItemOwnProps = {
5
4
  /** Om komponenten vises som valgt eller ikke
6
5
  * @default false
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import './index.scss';
2
1
  export * from './BreadcrumbNavigation';
3
2
  export * from './BreadcrumbItem';
4
3
  export * from './CollapsibleSideNavigation';