Sha256: 49d1cc6e7f7070778c838187ea6f712c5ca3757883591bc1db611efc29914722

Contents?: true

Size: 1.28 KB

Versions: 1919

Compression:

Stored size: 1.28 KB

Contents

import React from 'react'

import DatePicker from '../_date_picker'

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

1,919 entries across 1,919 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx