Sha256: 4fc64f7f53c9666921e93a045c6e088c77759c8630c555d3334680e7cdb21e07

Contents?: true

Size: 1.43 KB

Versions: 202

Compression:

Stored size: 1.43 KB

Contents

import React from 'react'
import { Button, Filter, Flex, Select, TextInput } from '../../'

const FilterClosePopover = (props) => {
  const options = [
    { value: 'USA' },
    { value: 'Canada' },
    { value: 'Brazil' },
    { value: 'Philippines' },
    { value: 'A Galaxy Far Far Away Like Really Far Away' },
  ]

  return (
    <Filter
        {...props}
        filters={{
          'Full Name': 'John Wick',
          'City': 'San Francisco',
        }}
        results={1}
        sortOptions={{
          popularity: 'Popularity',
          // eslint-disable-next-line
          manager_title: 'Manager\'s Title',
          // eslint-disable-next-line
          manager_name: 'Manager\'s Name',
        }}
        sortValue={[{ name: 'popularity', dir: 'desc' }]}
    >
      {({ closePopover }) => (
        <form>
          <TextInput
              label="Full Name"
              placeholder="Enter name"
          />

          <Select
              blankSelection="Select One..."
              label="Territory"
              name="location"
              options={options}
          />
          <Flex
              spacing="between"
          >
            <Button
                onClick={closePopover}
                text="Apply"
            />
            <Button
                text="Clear"
                variant="secondary"
            />
          </Flex>
        </form>
      )}
    </Filter>
  )
}

export default FilterClosePopover

Version data entries

202 entries across 202 versions & 1 rubygems

Version Path
playbook_ui-10.14.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.13.1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.13.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.12.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.11.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.10.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.9.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.8.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.7.1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.7.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.6.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.5.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.4.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.3.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx