Skip to content

Commit

Permalink
replace comment-parser with es5 transpiled version
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Siekmann committed May 15, 2020
1 parent f38ad0b commit 00e6bfa
Show file tree
Hide file tree
Showing 10 changed files with 526 additions and 350 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"jsxSingleQuote": false,
"trailingComma": "none"
}
12 changes: 1 addition & 11 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
module.exports = {
presets: [
[
'@babel/preset-env',
'@babel/preset-typescript',
{
targets: {
node: 'current'
}
}
]
]
presets: ['@babel/preset-env', '@babel/preset-typescript'],
};
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "storybook-design-token",
"version": "0.7.2",
"version": "0.7.2-ie11.1",
"description": "The Storybook Design Token Addon allows you to generate design token documentation from your stylesheets.",
"license": "MIT",
"main": "dist/public_api.js",
Expand Down Expand Up @@ -42,7 +42,6 @@
"@storybook/api": "5.2.8",
"@storybook/components": "5.2.8",
"@storybook/theming": "5.2.8",
"comment-parser": "0.7.1",
"gonzales-pe": "4.2.4",
"javascript-detect-element-resize": "^0.5.3",
"mensch": "0.3.4",
Expand Down
5 changes: 2 additions & 3 deletions src/components/ViewSwitch.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';
import { useLocalStorageState } from 'react-storage-hooks';

import useLocalStorage from '@illinois/react-use-local-storage';
import { useEffect } from '@storybook/addons';
import { styled } from '@storybook/theming';

interface Props {
Expand Down Expand Up @@ -45,7 +44,7 @@ const Button = styled.button(() => ({
}));

export const ViewSwitch = ({ onChange, value }: Props) => {
const [persistedValue, setPersistedValue] = useLocalStorage(
const [persistedValue, setPersistedValue] = useLocalStorageState(
`SB_DESIGN_TOKEN_EXPANSION:VIEW_TYPE`,
value
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/primitives/Collapsible.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { useLocalStorageState } from 'react-storage-hooks';

import useLocalStorage from '@illinois/react-use-local-storage';
import { styled } from '@storybook/theming';

import { IconChevronDown, IconChevronRight } from './Icons';
Expand Down Expand Up @@ -54,7 +54,7 @@ const Body = styled.div(() => ({
}));

export const Collapsible = ({ children, id, title }: Props) => {
const [expanded, setExpanded] = useLocalStorage(
const [expanded, setExpanded] = useLocalStorageState(
`SB_DESIGN_TOKEN_EXPANSION:${id}`,
false
);
Expand Down
Loading

0 comments on commit 00e6bfa

Please sign in to comment.