Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
// eslint-disable-next-line import/no-unresolved
import '@instructure/ui-polyfill-loader!'
import React from 'react'
import 'storybook-chromatic'
import { create } from '@storybook/theming'
import { getStorybook, storiesOf, configure, addParameters } from '@storybook/react'
import { theme } from '@instructure/canvas-theme'
theme.use({ overrides: { transitions: { duration: '0ms' } } })
// eslint-disable-next-line no-console
console.log('Generating component examples...')
addParameters({
options: {
theme: create({
base: 'light',
name: 'instructure-ui',
brandUrl: 'https://instructure.design',
brandImage: 'https://instructure.design/icons-bea652a7d0546b99c7cba9d3b4a538ee/favicon-32x32.png'
}),
showPanel: false,
isFullscreen: false
}
})
// eslint-disable-next-line no-restricted-imports
import '@instructure/ui-icons/lib/font/Solid/InstructureIcons-Solid.css'
// eslint-disable-next-line no-restricted-imports
import '@instructure/ui-icons/lib/font/Line/InstructureIcons-Line.css'
import { DateTime } from '@instructure/ui-i18n'
// eslint-disable-next-line import/no-webpack-loader-syntax, import/no-unresolved
import iconExample from '!svg-inline-loader!./heart_lg.svg'
import avatarSquare from './avatarSquare.jpg'
import avatarPortrait from './avatarPortrait.jpg'
import placeholderImage from './placeholder-image'
import placeholderLogo from './placeholder-logo'
import { theme } from '@instructure/canvas-theme'
theme.use()
const globals = {
...Components,
moment,
locales: moment.locales(),
avatarSquare,
avatarPortrait,
DateTime,
iconExample,
lorem: {
sentence () {
return lorem({
count: 1,
units: 'sentences'
})
},