Skip to content

Commit

Permalink
pkp/pkp-lib#10153 Update story files to use PascalCase component names
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Jul 16, 2024
1 parent 9c2a282 commit 3bc84da
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/components/Container/DecisionPage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const DecisionPageWithDataAndTemplate = {
class="app__notifications"
role="status"
>
<transition-group name="app__notification">
<TransitionGroup name="app__notification">
<Notification
v-for="notification in notifications"
:key="notification.key"
Expand All @@ -244,7 +244,7 @@ const DecisionPageWithDataAndTemplate = {
>
{{ notification.message }}
</Notification>
</transition-group>
</TransitionGroup>
</div>
<transition name="app__loading">
<div v-if="isLoading" class="app__loading" role="alert">
Expand Down
4 changes: 2 additions & 2 deletions src/components/Container/Page.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const Default = {
class="app__notifications"
role="status"
>
<transition-group name="app__notification">
<TransitionGroup name="app__notification">
<Notification
v-for="notification in notifications"
:key="notification.key"
Expand All @@ -202,7 +202,7 @@ export const Default = {
>
{{ notification.message }}
</Notification>
</transition-group>
</TransitionGroup>
</div>
<transition name="app__loading">
<div v-if="isLoading" class="app__loading" role="alert">
Expand Down
10 changes: 5 additions & 5 deletions src/components/Container/StatsPage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const EditorialStatsPageWithDataAndTemplate = {
<div v-if="activeByStage" class="pkpStats__graph">
<div class="pkpStats--editorial__stageWrapper -pkpClearfix">
<div class="pkpStats--editorial__stageChartWrapper">
<doughnut-chart :chart-data="chartData"></doughnut-chart>
<DoughnutChart :chart-data="chartData"></DoughnutChart>
</div>
<div class="pkpStats--editorial__stageList">
<h2
Expand Down Expand Up @@ -51,7 +51,7 @@ const EditorialStatsPageWithDataAndTemplate = {
<span v-if="isLoading" class="pkpSpinner" aria-hidden="true"></span>
</h1>
<template #actions>
<date-range
<DateRange
unique-id="editorial-stats-date-range"
:date-start="dateStart"
:date-end="dateEnd"
Expand All @@ -74,7 +74,7 @@ const EditorialStatsPageWithDataAndTemplate = {
invalid-end-date-max-label="The end date may not be later than {$date}."
@set-range="setDateRange"
@updated:current-range="setCurrentDateRange"
></date-range>
></DateRange>
<PkpButton
v-if="filters.length"
:is-active="isSidebarVisible"
Expand Down Expand Up @@ -373,7 +373,7 @@ const PublicationStatsPageWithDataAndTemplate = {
<h1>Articles</h1>
<Spinner v-if="isLoadingTimeline" />
<template #actions>
<date-range
<DateRange
unique-id="publication-stats-date-range"
:date-start="dateStart"
:date-end="dateEnd"
Expand Down Expand Up @@ -509,7 +509,7 @@ const PublicationStatsPageWithDataAndTemplate = {
</tr>
</tbody>
</table>
<line-chart :chart-data="chartData" aria-hidden="true"></line-chart>
<LineChart :chart-data="chartData" aria-hidden="true"></LineChart>
<span v-if="isLoadingTimeline" class="pkpStats__loadingCover">
<Spinner></Spinner>
</span>
Expand Down
8 changes: 4 additions & 4 deletions src/components/Container/SubmissionWizardPage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ const SubmissionWizardPageWithDataAndTemplate = {
class="submissionWizard__stepForm"
@set="updateForm"
/>
<submission-files-list-panel
<SubmissionFilesListPanel
v-else-if="section.type === 'files'"
v-bind="components.submissionFiles"
@set="set"
/>
<contributors-list-panel
<ContributorsListPanel
v-else-if="section.type === 'contributors'"
v-bind="components.contributors"
:items="publication.authors"
Expand Down Expand Up @@ -381,7 +381,7 @@ const SubmissionWizardPageWithDataAndTemplate = {
class="app__notifications"
role="status"
>
<transition-group name="app__notification">
<TransitionGroup name="app__notification">
<Notification
v-for="notification in notifications"
:key="notification.key"
Expand All @@ -391,7 +391,7 @@ const SubmissionWizardPageWithDataAndTemplate = {
>
{{ notification.message }}
</Notification>
</transition-group>
</TransitionGroup>
</div>
<transition name="app__loading">
<div v-if="isLoading" class="app__loading" role="alert">
Expand Down
8 changes: 4 additions & 4 deletions src/components/Container/WorkflowPage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const WorkflowPageWithDataAndTemplate = {
<PkpForm v-bind="components.titleAbstract" @set="set" />
</tab>
<tab id="contributors" label="Contributors">
<contributors-list-panel
<ContributorsListPanel
v-bind="components.contributors"
class="pkpWorkflow__contributors"
:items="workingPublication.authors"
Expand All @@ -246,7 +246,7 @@ const WorkflowPageWithDataAndTemplate = {
@set="set"
@updated:publication="setWorkingPublication"
@updated:contributors="setContributors"
></contributors-list-panel>
></ContributorsListPanel>
</tab>
<tab id="metadata" label="Metadata">
<PkpForm v-bind="components.metadata" @set="set" />
Expand Down Expand Up @@ -279,7 +279,7 @@ const WorkflowPageWithDataAndTemplate = {
class="app__notifications"
role="status"
>
<transition-group name="app__notification">
<TransitionGroup name="app__notification">
<Notification
v-for="notification in notifications"
:key="notification.key"
Expand All @@ -289,7 +289,7 @@ const WorkflowPageWithDataAndTemplate = {
>
{{ notification.message }}
</Notification>
</transition-group>
</TransitionGroup>
</div>
<transition name="app__loading">
<div v-if="isLoading" class="app__loading" role="alert">
Expand Down
4 changes: 2 additions & 2 deletions src/components/Modal/Modal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Use a [$ref](https://vuejs.org/v2/guide/components-edge-cases.html#Accessing-Chi

```html
<PkpButton ref="button" @click="$modal.show('example')">Open Modal</PkpButton>
<modal v-bind="MODAL_PROPS" name="example" @closed="setFocusToRef('button')">
<Modal v-bind="MODAL_PROPS" name="example" @closed="setFocusToRef('button')">
...
</modal>
</Modal>
```

A dialog will reset the focus automatically.
Expand Down
2 changes: 1 addition & 1 deletion src/components/Orderer/Orderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
itemId: [String, Number],
/** The name of the item. This is used in an accessible label for the up and down buttons. */
itemTitle: String,
/** Whether or not to provide drag-and-drop controls for this item. When `isDraggable` is true, the items to be ordered must be wrapped in a `<draggable>` component. */
/** Whether or not to provide drag-and-drop controls for this item. When `isDraggable` is true, the items to be ordered must be wrapped in a `<Draggable>` component. */
isDraggable: {
type: Boolean,
default: true,
Expand Down

0 comments on commit 3bc84da

Please sign in to comment.