Skip to content

Commit c99c3e4

Browse files
committed
run wrapper script, adjust storybook styles
1 parent aab4acd commit c99c3e4

File tree

83 files changed

+755
-14
lines changed

Some content is hidden

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

83 files changed

+755
-14
lines changed

.storybook/preview-head.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,27 @@
8383
position: static;
8484
}
8585

86+
/* table in props description (table in ArgsTable) */
87+
.docblock-argstable-body table {
88+
max-width: 10rem;
89+
table-layout: fixed;
90+
border-collapse: collapse;
91+
border-spacing: 1px;
92+
text-align: center;
93+
}
94+
.docblock-argstable-body table th {
95+
background-color: #eceff1;
96+
color: #2e3438 !important;
97+
border: 1px solid #dededf !important;
98+
padding: 0px !important;
99+
padding-block: 0.125rem !important;
100+
}
101+
.docblock-argstable-body table td {
102+
border: 1px solid #dededf !important;
103+
padding: 0px !important;
104+
padding-block: 0.125rem !important;
105+
}
106+
86107
/* TODO remove this workaround as soon as https://github.com/storybookjs/storybook/issues/20497 is fixed */
87108
.docs-story > div > div[scale] {
88109
min-height: 20px;

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,20 @@ interface AvatarGroupPropTypes
7474
/**
7575
* Fired when the component is activated either with a
7676
* click/tap or by using the Enter or Space key.
77+
*
78+
* | cancelable | bubbles |
79+
* | :--------: | :-----: |
80+
* | ❌|✅|
7781
*/
7882
onClick?: (event: Ui5CustomEvent<AvatarGroupDomRef, AvatarGroupClickEventDetail>) => void;
7983

8084
/**
8185
* Fired when the count of visible `Avatar` elements in the
8286
* component has changed
87+
*
88+
* | cancelable | bubbles |
89+
* | :--------: | :-----: |
90+
* | ❌|✅|
8391
*/
8492
onOverflow?: (event: Ui5CustomEvent<AvatarGroupDomRef>) => void;
8593
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,28 @@ interface BarcodeScannerDialogPropTypes
6565
* Fired when the user closes the component.
6666
*
6767
* **Note:** Available since [v2.0.0](https://github.com/SAP/ui5-webcomponents/releases/tag/v2.0.0) of **@ui5/webcomponents-fiori**.
68+
*
69+
* | cancelable | bubbles |
70+
* | :--------: | :-----: |
71+
* | ❌|✅|
6872
*/
6973
onClose?: (event: Ui5CustomEvent<BarcodeScannerDialogDomRef>) => void;
7074

7175
/**
7276
* Fires when the scan fails with error.
77+
*
78+
* | cancelable | bubbles |
79+
* | :--------: | :-----: |
80+
* | ❌|✅|
7381
*/
7482
onScanError?: (event: Ui5CustomEvent<BarcodeScannerDialogDomRef, BarcodeScannerDialogScanErrorEventDetail>) => void;
7583

7684
/**
7785
* Fires when the scan is completed successfuuly.
86+
*
87+
* | cancelable | bubbles |
88+
* | :--------: | :-----: |
89+
* | ❌|✅|
7890
*/
7991
onScanSuccess?: (
8092
event: Ui5CustomEvent<BarcodeScannerDialogDomRef, BarcodeScannerDialogScanSuccessEventDetail>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ interface BreadcrumbsPropTypes
4343
* **Note:** You can prevent browser location change by calling `event.preventDefault()`.
4444
*
4545
* **Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.
46+
*
47+
* | cancelable | bubbles |
48+
* | :--------: | :-----: |
49+
* | ✅|✅|
4650
*/
4751
onItemClick?: (event: Ui5CustomEvent<BreadcrumbsDomRef, BreadcrumbsItemClickEventDetail>) => void;
4852
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ interface ButtonPropTypes extends ButtonAttributes, Omit<CommonProps, keyof Butt
136136
*
137137
* **Note:** The event will not be fired if the `disabled`
138138
* property is set to `true`.
139+
*
140+
* | cancelable | bubbles |
141+
* | :--------: | :-----: |
142+
* | ❌|✅|
139143
*/
140144
onClick?: MouseEventHandler<ButtonDomRef>;
141145
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ interface CalendarPropTypes
118118
* create instances of `CalendarDate` for the newly selected dates. In that case you should do this manually.
119119
*
120120
* **Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.
121+
*
122+
* | cancelable | bubbles |
123+
* | :--------: | :-----: |
124+
* | ✅|✅|
121125
*/
122126
onSelectionChange?: (event: Ui5CustomEvent<CalendarDomRef, CalendarSelectionChangeEventDetail>) => void;
123127
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ interface CardHeaderPropTypes
6161
* Fired when the component is activated by mouse/tap or by using the Enter or Space key.
6262
*
6363
* **Note:** The event would be fired only if the `interactive` property is set to true.
64+
*
65+
* | cancelable | bubbles |
66+
* | :--------: | :-----: |
67+
* | ❌|✅|
6468
*/
6569
onClick?: (event: Ui5CustomEvent<CardHeaderDomRef>) => void;
6670
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ interface CarouselPropTypes
135135
* Fired whenever the page changes due to user interaction,
136136
* when the user clicks on the navigation arrows or while resizing,
137137
* based on the `items-per-page` property.
138+
*
139+
* | cancelable | bubbles |
140+
* | :--------: | :-----: |
141+
* | ❌|✅|
138142
*/
139143
onNavigate?: (event: Ui5CustomEvent<CarouselDomRef, CarouselNavigateEventDetail>) => void;
140144
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ interface CheckBoxPropTypes extends CheckBoxAttributes, Omit<CommonProps, keyof
122122
* Fired when the component checked state changes.
123123
*
124124
* **Note:** Call `event.preventDefault()` inside the handler of this event to prevent its default action/s.
125+
*
126+
* | cancelable | bubbles |
127+
* | :--------: | :-----: |
128+
* | ✅|✅|
125129
*/
126130
onChange?: (event: Ui5CustomEvent<CheckBoxDomRef>) => void;
127131
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ interface ColorPalettePropTypes extends ColorPaletteAttributes, Omit<CommonProps
1717
children?: ReactNode | ReactNode[];
1818
/**
1919
* Fired when the user selects a color.
20+
*
21+
* | cancelable | bubbles |
22+
* | :--------: | :-----: |
23+
* | ❌|✅|
2024
*/
2125
onItemClick?: (event: Ui5CustomEvent<ColorPaletteDomRef, ColorPaletteItemClickEventDetail>) => void;
2226
}

0 commit comments

Comments
 (0)