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.2.1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.2.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.1.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.0.1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-10.0.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.19.0.pre.alpha.pre.fonts2 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.19.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx