Sha256: 49d1cc6e7f7070778c838187ea6f712c5ca3757883591bc1db611efc29914722

Contents?: true

Size: 1.28 KB

Versions: 1646

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,646 entries across 1,646 versions & 2 rubygems

Version Path
playbook_ui_docs-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1658tanstackbump4657 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui_docs-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx