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-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.7.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.6.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.5.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.4.0.pre.alpha.rubytheme1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.4.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.3.0 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.2.7 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx
playbook_ui-11.2.6 app/pb_kits/playbook/pb_filter/docs/_filter_close_popover.jsx