Files
SCM-Manager/scm-ui/ui-syntaxhighlighting/.storybook/preview.js

29 lines
969 B
JavaScript
Raw Normal View History

2020-06-30 15:20:59 +02:00
/*
* Copyright (c) 2020 - present Cloudogu GmbH
2020-06-30 15:20:59 +02:00
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3.
2020-06-30 15:20:59 +02:00
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
2020-06-30 15:20:59 +02:00
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
2020-06-30 15:20:59 +02:00
*/
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
options: {
storySort: (a, b) => (a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, { numeric: true })),
},
};