Skip to content

Commit ed0a8c5

Browse files
committed
sort imports again
1 parent ebd6767 commit ed0a8c5

File tree

79 files changed

+525
-579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+525
-579
lines changed

packages/main/src/webComponents/Avatar/index.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
2-
import '@ui5/webcomponents/dist/Avatar';
3-
import { FC } from 'react';
41
import { AvatarBackgroundColor } from '@ui5/webcomponents-react/lib/AvatarBackgroundColor';
52
import { AvatarFitType } from '@ui5/webcomponents-react/lib/AvatarFitType';
63
import { AvatarShape } from '@ui5/webcomponents-react/lib/AvatarShape';
74
import { AvatarSize } from '@ui5/webcomponents-react/lib/AvatarSize';
5+
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
6+
import '@ui5/webcomponents/dist/Avatar';
7+
import { FC } from 'react';
88

99
export interface AvatarPropTypes extends WithWebComponentPropTypes {
1010
/**
@@ -44,12 +44,12 @@ export interface AvatarPropTypes extends WithWebComponentPropTypes {
4444
}
4545

4646
/**
47-
* An image-like control that has different display options for representing images and icons in different shapes and
48-
sizes, depending on the use case. The shape can be circular or square. There are several predefined sizes, as well as an
49-
option to set a custom size.
50-
51-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Avatar" target="_blank">UI5 Web Components Playground</a>
52-
*/
47+
* An image-like control that has different display options for representing images and icons in different shapes and
48+
sizes, depending on the use case. The shape can be circular or square. There are several predefined sizes, as well as an
49+
option to set a custom size.
50+
51+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Avatar" target="_blank">UI5 Web Components Playground</a>
52+
*/
5353
const Avatar: FC<AvatarPropTypes> = withWebComponent<AvatarPropTypes>(
5454
'ui5-avatar',
5555
['accessibleName', 'backgroundColor', 'icon', 'image', 'imageFitType', 'initials', 'shape', 'size'],

packages/main/src/webComponents/Badge/index.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
22
import '@ui5/webcomponents/dist/Badge';
3-
import { FC } from 'react';
4-
import { ReactNode } from 'react';
3+
import { FC, ReactNode } from 'react';
54

65
export interface BadgePropTypes extends WithWebComponentPropTypes {
76
/**
@@ -19,12 +18,12 @@ export interface BadgePropTypes extends WithWebComponentPropTypes {
1918
}
2019

2120
/**
22-
* The <code>Badge</code> is a small non-interactive component which contains text information and color chosen from a list
23-
of predefined color schemes. It serves the purpose to attract the user attention to some piece of information (state,
24-
quantity, condition, etc.).
25-
26-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Badge" target="_blank">UI5 Web Components Playground</a>
27-
*/
21+
* The <code>Badge</code> is a small non-interactive component which contains text information and color chosen from a list
22+
of predefined color schemes. It serves the purpose to attract the user attention to some piece of information (state,
23+
quantity, condition, etc.).
24+
25+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Badge" target="_blank">UI5 Web Components Playground</a>
26+
*/
2827
const Badge: FC<BadgePropTypes> = withWebComponent<BadgePropTypes>('ui5-badge', ['colorScheme'], [], ['icon'], []);
2928

3029
Badge.displayName = 'Badge';

packages/main/src/webComponents/BusyIndicator/index.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { BusyIndicatorSize } from '@ui5/webcomponents-react/lib/BusyIndicatorSize';
12
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
23
import '@ui5/webcomponents/dist/BusyIndicator';
3-
import { FC } from 'react';
4-
import { BusyIndicatorSize } from '@ui5/webcomponents-react/lib/BusyIndicatorSize';
5-
import { ReactNode } from 'react';
4+
import { FC, ReactNode } from 'react';
65

76
export interface BusyIndicatorPropTypes extends WithWebComponentPropTypes {
87
/**
@@ -24,11 +23,11 @@ export interface BusyIndicatorPropTypes extends WithWebComponentPropTypes {
2423
}
2524

2625
/**
27-
* The <code>BusyIndicator</code> signals that some operation is going on and that the user must wait. It does not block
28-
the current UI screen so other operations could be triggered in parallel.
29-
30-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/BusyIndicator" target="_blank">UI5 Web Components Playground</a>
31-
*/
26+
* The <code>BusyIndicator</code> signals that some operation is going on and that the user must wait. It does not block
27+
the current UI screen so other operations could be triggered in parallel.
28+
29+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/BusyIndicator" target="_blank">UI5 Web Components Playground</a>
30+
*/
3231
const BusyIndicator: FC<BusyIndicatorPropTypes> = withWebComponent<BusyIndicatorPropTypes>(
3332
'ui5-busyindicator',
3433
['size', 'text'],

packages/main/src/webComponents/Button/index.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { ButtonDesign } from '@ui5/webcomponents-react/lib/ButtonDesign';
12
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
23
import '@ui5/webcomponents/dist/Button';
3-
import { FC } from 'react';
4-
import { ButtonDesign } from '@ui5/webcomponents-react/lib/ButtonDesign';
5-
import { ReactNode } from 'react';
4+
import { FC, ReactNode } from 'react';
65

76
export interface ButtonPropTypes extends Omit<WithWebComponentPropTypes, 'onClick'> {
87
/**
@@ -38,11 +37,11 @@ export interface ButtonPropTypes extends Omit<WithWebComponentPropTypes, 'onClic
3837
}
3938

4039
/**
41-
* The <code>Button</code> component represents a simple push button. It enables users to trigger actions by clicking or
42-
tapping the <code>Button</code>, or by pressing certain keyboard keys, such as Enter.
43-
44-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Button" target="_blank">UI5 Web Components Playground</a>
45-
*/
40+
* The <code>Button</code> component represents a simple push button. It enables users to trigger actions by clicking or
41+
tapping the <code>Button</code>, or by pressing certain keyboard keys, such as Enter.
42+
43+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Button" target="_blank">UI5 Web Components Playground</a>
44+
*/
4645
const Button: FC<ButtonPropTypes> = withWebComponent<ButtonPropTypes>(
4746
'ui5-button',
4847
['design', 'icon'],

packages/main/src/webComponents/Calendar/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { CalendarType } from '@ui5/webcomponents-react/lib/CalendarType';
12
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
23
import '@ui5/webcomponents/dist/Calendar';
34
import { FC } from 'react';
4-
import { CalendarType } from '@ui5/webcomponents-react/lib/CalendarType';
55

66
export interface CalendarPropTypes extends WithWebComponentPropTypes {
77
/**
@@ -37,11 +37,11 @@ export interface CalendarPropTypes extends WithWebComponentPropTypes {
3737
}
3838

3939
/**
40-
* The <code>Calendar</code> can be used standale to display the years, months, weeks and days, but the main purpose of the
41-
<code>Calendar</code> is to be used within a <code>DatePicker</code>
42-
43-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Calendar" target="_blank">UI5 Web Components Playground</a>
44-
*/
40+
* The <code>Calendar</code> can be used standale to display the years, months, weeks and days, but the main purpose of the
41+
<code>Calendar</code> is to be used within a <code>DatePicker</code>
42+
43+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Calendar" target="_blank">UI5 Web Components Playground</a>
44+
*/
4545
const Calendar: FC<CalendarPropTypes> = withWebComponent<CalendarPropTypes>(
4646
'ui5-calendar',
4747
['maxDate', 'minDate', 'primaryCalendarType', 'selectedDates', 'timestamp'],

packages/main/src/webComponents/Card/index.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
22
import '@ui5/webcomponents/dist/Card';
3-
import { FC } from 'react';
4-
import { ReactNode } from 'react';
3+
import { FC, ReactNode } from 'react';
54

65
export interface CardPropTypes extends WithWebComponentPropTypes {
76
/**
@@ -39,13 +38,13 @@ export interface CardPropTypes extends WithWebComponentPropTypes {
3938
}
4039

4140
/**
42-
* The <code>Card</code> is a component that represents information in the form of a tile with separate header and content
43-
areas. The content area of a <code>Card</code> can be arbitrary HTML content. The header can be used through several
44-
properties, such as: <code>heading</code>, <code>subheading</code>, <code>status</code> and two slots:
45-
<code>avatar</code> and <code>action</code>.
46-
47-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Card" target="_blank">UI5 Web Components Playground</a>
48-
*/
41+
* The <code>Card</code> is a component that represents information in the form of a tile with separate header and content
42+
areas. The content area of a <code>Card</code> can be arbitrary HTML content. The header can be used through several
43+
properties, such as: <code>heading</code>, <code>subheading</code>, <code>status</code> and two slots:
44+
<code>avatar</code> and <code>action</code>.
45+
46+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Card" target="_blank">UI5 Web Components Playground</a>
47+
*/
4948
const Card: FC<CardPropTypes> = withWebComponent<CardPropTypes>(
5049
'ui5-card',
5150
['heading', 'status', 'subheading'],

packages/main/src/webComponents/Carousel/index.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { CarouselArrowsPlacement } from '@ui5/webcomponents-react/lib/CarouselArrowsPlacement';
12
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
23
import '@ui5/webcomponents/dist/Carousel';
3-
import { FC } from 'react';
4-
import { CarouselArrowsPlacement } from '@ui5/webcomponents-react/lib/CarouselArrowsPlacement';
5-
import { ReactNode } from 'react';
4+
import { FC, ReactNode } from 'react';
65

76
export interface CarouselPropTypes extends WithWebComponentPropTypes {
87
/**
@@ -52,11 +51,11 @@ export interface CarouselPropTypes extends WithWebComponentPropTypes {
5251
}
5352

5453
/**
55-
* The carousel allows the user to browse through a set of items by swiping right or left. The component is mostly used for
56-
showing a gallery of images, but can hold any other HTML element.
57-
58-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Carousel" target="_blank">UI5 Web Components Playground</a>
59-
*/
54+
* The carousel allows the user to browse through a set of items by swiping right or left. The component is mostly used for
55+
showing a gallery of images, but can hold any other HTML element.
56+
57+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/Carousel" target="_blank">UI5 Web Components Playground</a>
58+
*/
6059
const Carousel: FC<CarouselPropTypes> = withWebComponent<CarouselPropTypes>(
6160
'ui5-carousel',
6261
['arrowsPlacement', 'infiniteScrollOffset', 'itemsPerPageL', 'itemsPerPageM', 'itemsPerPageS', 'selectedIndex'],

packages/main/src/webComponents/CheckBox/index.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
12
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
23
import '@ui5/webcomponents/dist/CheckBox';
34
import { FC } from 'react';
4-
import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
55

66
export interface CheckBoxPropTypes extends Omit<WithWebComponentPropTypes, 'onChange'> {
77
/**
@@ -43,15 +43,15 @@ export interface CheckBoxPropTypes extends Omit<WithWebComponentPropTypes, 'onCh
4343
}
4444

4545
/**
46-
* Allows the user to set a binary value, such as true/false or yes/no for an item. <br /><br />
47-
The <code>CheckBox</code> component consists of a box and a label that describes its purpose. If it's checked, an
48-
indicator is displayed inside the box. To check/uncheck the <code>CheckBox</code>, the user has to click or tap the
49-
square box or its label. <br /><br />
50-
The <code>CheckBox</code> component only has 2 states - checked and unchecked. Clicking or tapping toggles the
51-
<code>CheckBox</code> between checked and unchecked state.
52-
53-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/CheckBox" target="_blank">UI5 Web Components Playground</a>
54-
*/
46+
* Allows the user to set a binary value, such as true/false or yes/no for an item. <br /><br />
47+
The <code>CheckBox</code> component consists of a box and a label that describes its purpose. If it's checked, an
48+
indicator is displayed inside the box. To check/uncheck the <code>CheckBox</code>, the user has to click or tap the
49+
square box or its label. <br /><br />
50+
The <code>CheckBox</code> component only has 2 states - checked and unchecked. Clicking or tapping toggles the
51+
<code>CheckBox</code> between checked and unchecked state.
52+
53+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/CheckBox" target="_blank">UI5 Web Components Playground</a>
54+
*/
5555
const CheckBox: FC<CheckBoxPropTypes> = withWebComponent<CheckBoxPropTypes>(
5656
'ui5-checkbox',
5757
['name', 'text', 'valueState'],

packages/main/src/webComponents/ComboBox/index.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
12
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
23
import '@ui5/webcomponents/dist/ComboBox';
3-
import { FC } from 'react';
4-
import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
5-
import { ReactNode } from 'react';
4+
import { FC, ReactNode } from 'react';
65

76
export interface ComboBoxPropTypes extends Omit<WithWebComponentPropTypes, 'onChange' | 'onInput'> {
87
/**
@@ -58,12 +57,12 @@ export interface ComboBoxPropTypes extends Omit<WithWebComponentPropTypes, 'onCh
5857
}
5958

6059
/**
61-
* The <code>ComboBox</code> component represents a drop-down menu with a list of the available options and a text input
62-
field to narrow down the options. It is commonly used to enable users to select one or more options from a predefined
63-
list.
64-
65-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/ComboBox" target="_blank">UI5 Web Components Playground</a>
66-
*/
60+
* The <code>ComboBox</code> component represents a drop-down menu with a list of the available options and a text input
61+
field to narrow down the options. It is commonly used to enable users to select one or more options from a predefined
62+
list.
63+
64+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/ComboBox" target="_blank">UI5 Web Components Playground</a>
65+
*/
6766
const ComboBox: FC<ComboBoxPropTypes> = withWebComponent<ComboBoxPropTypes>(
6867
'ui5-combobox',
6968
['filter', 'filterValue', 'placeholder', 'value', 'valueState'],

packages/main/src/webComponents/ComboBoxItem/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export interface ComboBoxItemPropTypes extends WithWebComponentPropTypes {
1010
}
1111

1212
/**
13-
* The <code>ComboBoxItem</code> represents the item for a <code>ComboBox</code>
14-
15-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/ComboBoxItem" target="_blank">UI5 Web Components Playground</a>
16-
*/
13+
* The <code>ComboBoxItem</code> represents the item for a <code>ComboBox</code>
14+
15+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/ComboBoxItem" target="_blank">UI5 Web Components Playground</a>
16+
*/
1717
const ComboBoxItem: FC<ComboBoxItemPropTypes> = withWebComponent<ComboBoxItemPropTypes>(
1818
'ui5-cb-item',
1919
['text'],

packages/main/src/webComponents/CustomListItem/index.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { ListItemTypes } from '@ui5/webcomponents-react/lib/ListItemTypes';
12
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
23
import '@ui5/webcomponents/dist/CustomListItem';
3-
import { FC } from 'react';
4-
import { ListItemTypes } from '@ui5/webcomponents-react/lib/ListItemTypes';
5-
import { ReactNode } from 'react';
4+
import { FC, ReactNode } from 'react';
65

76
export interface CustomListItemPropTypes extends WithWebComponentPropTypes {
87
/**
@@ -24,12 +23,12 @@ export interface CustomListItemPropTypes extends WithWebComponentPropTypes {
2423
}
2524

2625
/**
27-
* A component to be used as custom list item within the <code>List</code> the same way as the standard
28-
<code>StandardListItem</code>. The <code>CustomListItem</code> accepts arbitrary HTML content to allow full
29-
customization
30-
31-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/CustomListItem" target="_blank">UI5 Web Components Playground</a>
32-
*/
26+
* A component to be used as custom list item within the <code>List</code> the same way as the standard
27+
<code>StandardListItem</code>. The <code>CustomListItem</code> accepts arbitrary HTML content to allow full
28+
customization
29+
30+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/CustomListItem" target="_blank">UI5 Web Components Playground</a>
31+
*/
3332
const CustomListItem: FC<CustomListItemPropTypes> = withWebComponent<CustomListItemPropTypes>(
3433
'ui5-li-custom',
3534
['type'],

packages/main/src/webComponents/DatePicker/index.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
2-
import '@ui5/webcomponents/dist/DatePicker';
3-
import { FC } from 'react';
41
import { CalendarType } from '@ui5/webcomponents-react/lib/CalendarType';
52
import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
6-
import { ReactNode } from 'react';
3+
import { withWebComponent, WithWebComponentPropTypes } from '@ui5/webcomponents-react/lib/withWebComponent';
4+
import '@ui5/webcomponents/dist/DatePicker';
5+
import { FC, ReactNode } from 'react';
76

87
export interface DatePickerPropTypes extends Omit<WithWebComponentPropTypes, 'onChange' | 'onInput'> {
98
/**
@@ -75,12 +74,12 @@ export interface DatePickerPropTypes extends Omit<WithWebComponentPropTypes, 'on
7574
}
7675

7776
/**
78-
* The <code>DatePicker</code> component provides an input field with assigned calendar which opens on user action. The
79-
<code>DatePicker</code> allows users to select a localized date using touch, mouse, or keyboard input. It consists of
80-
two parts: the date input field and the date picker.
81-
82-
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/DatePicker" target="_blank">UI5 Web Components Playground</a>
83-
*/
77+
* The <code>DatePicker</code> component provides an input field with assigned calendar which opens on user action. The
78+
<code>DatePicker</code> allows users to select a localized date using touch, mouse, or keyboard input. It consists of
79+
two parts: the date input field and the date picker.
80+
81+
* <a href="https://sap.github.io/ui5-webcomponents/playground/components/DatePicker" target="_blank">UI5 Web Components Playground</a>
82+
*/
8483
const DatePicker: FC<DatePickerPropTypes> = withWebComponent<DatePickerPropTypes>(
8584
'ui5-date-picker',
8685
['formatPattern', 'maxDate', 'minDate', 'name', 'placeholder', 'primaryCalendarType', 'value', 'valueState'],

packages/main/src/webComponents/DateRangePicker/DateRangePicker.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Title, Subtitle, Description, Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
1+
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs/blocks';
22
import { DateRangePicker } from '@ui5/webcomponents-react/lib/DateRangePicker';
33
import { CalendarType } from '@ui5/webcomponents-react/lib/CalendarType';
44
import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';

0 commit comments

Comments
 (0)