Skip to content

Commit

Permalink
export section filter as its own module, because it has dependencies …
Browse files Browse the repository at this point in the history
…on section, dialog, reach dialog and react-tools
  • Loading branch information
mmalfertheiner committed Nov 5, 2021
1 parent 9ae0298 commit 9c873c9
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ pagination.js
pagination.d.ts
section.js
section.d.ts
sectionFilter.js
sectionFilter.d.ts
selectDialog.js
selectDialog.d.ts
submitButton.js
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ pagination.js
pagination.d.ts
section.js
section.d.ts
sectionFilter.js
sectionFilter.d.ts
selectDialog.js
selectDialog.d.ts
submitButton.js
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
"pagination.d.ts",
"section.js",
"section.d.ts",
"sectionFilter.js",
"sectionFilter.d.ts",
"selectDialog.js",
"selectDialog.d.ts",
"submitButton.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classNames from 'classnames'
import { Dialog, DialogProps } from '@reach/dialog'
import { useInternationalization, useTheme } from '../../../framework'
import { DialogHeader, DialogHeaderProps } from '../../dialog'
import { useInternationalization, useTheme } from '../../framework'
import { DialogHeader, DialogHeaderProps } from '../dialog'

type Props = Partial<Pick<DialogHeaderProps, 'title'>> &
Pick<DialogHeaderProps, 'onDismiss'> &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import classNames from 'classnames'
import { Form, Formik, useFormikContext } from 'formik'
import { ReactChildren, ReactElement, ReactNode, useEffect } from 'react'
import { useMatchMediaQuery } from '@aboutbits/react-toolbox'
import { useTheme } from '../../../framework'
import { ClassNameProps } from '../../types'
import { SubmitButton } from '../../button/SubmitButton'
import { useTheme } from '../../framework'
import { ClassNameProps } from '../types'
import { SubmitButton } from '../button/SubmitButton'
import { FilterDialog } from './FilterDialog'

type Props<T> = ClassNameProps & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import IconFilterList from '@aboutbits/react-material-icons/dist/IconFilterList'
import { ReactElement } from 'react'
import {
SectionAction,
SectionActionProps,
} from '../SectionHeader/SectionAction'
import { useInternationalization, useTheme } from '../../../framework'
import { SectionAction, SectionActionProps } from '../section'
import { useInternationalization, useTheme } from '../../framework'

type Props = Pick<SectionActionProps, 'onClick'> &
Partial<Pick<SectionActionProps, 'label' | 'Icon'>> & {
Expand Down
File renamed without changes.
5 changes: 1 addition & 4 deletions src/examples/list.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import {
SectionFooter,
} from '../components/section'
import { PaginationInMemory } from '../components/pagination'
import {
SectionFilter,
SectionFilterAction,
} from '../components/section/SectionFilter'
import { SectionFilter, SectionFilterAction } from '../components/sectionFilter'
import { Select } from '../components/form'

<Meta title="Examples/List" />
Expand Down
1 change: 1 addition & 0 deletions src/sectionFilter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './components/sectionFilter'

0 comments on commit 9c873c9

Please sign in to comment.