Sha256: 921683a4cb2152cd22452d2622a7004031eef9dc9d6ded360d1c248cf98f363a

Contents?: true

Size: 1.28 KB

Versions: 94

Compression:

Stored size: 1.28 KB

Contents

import React from 'react'
import { DatePicker } from '../../'

const DatePickerDisabled = (props) => (
  <div>
    <DatePicker
        disableDate={[new Date().fp_incr(1)]}
        label="Disable Single Date"
        pickerId="single-disabled-date"
        {...props}
    />
    <DatePicker
        disableDate={[new Date().fp_incr(1), new Date().fp_incr(3)]}
        label="Disable Multiple Dates"
        pickerId="multiple-disabled-dates"
        {...props}
    />
    <DatePicker
        disableRange={[
          {
            from: new Date().fp_incr(1),
            to: new Date().fp_incr(7),
          },
        ]}
        label="Disable Single Range"
        pickerId="single-date-range"
        {...props}
    />
    <DatePicker
        disableRange={[
          {
            from: new Date().fp_incr(1),
            to: new Date().fp_incr(3),
          },
          {
            from: new Date().fp_incr(7),
            to: new Date().fp_incr(14),
          },
        ]}
        label="Disable Multiple Ranges"
        pickerId="multiple-date-ranges"
        {...props}
    />
    <DatePicker
        disableWeekdays={['Sunday', 'Saturday']}
        label="Disable Specific Weekdays"
        pickerId="disabled-weekdays"
        {...props}
    />
  </div>
)

export default DatePickerDisabled

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
playbook_ui-9.19.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx