class Playbook::PbDatePicker::DatePicker

def angle_down_path

def angle_down_path
  "app/pb_kits/playbook/utilities/icons/angle-down.svg"
end

def classname

def classname
  default_margin_bottom = margin_bottom.present? ? "" : " mb_sm"
  generate_classname("pb_date_picker_kit") + default_margin_bottom
end

def date_picker_config

def date_picker_config
  {
    allowInput: allow_input,
    customQuickPickDates: custom_quick_pick_dates,
    defaultDate: default_date,
    disableDate: disable_date,
    disableRange: disable_range,
    disableWeekdays: disable_weekdays,
    enableTime: enable_time,
    format: format,
    hideIcon: hide_icon,
    inline: inline,
    maxDate: max_date,
    minDate: min_date,
    mode: mode,
    pickerId: picker_id,
    plugins: plugins,
    position: position,
    positionElement: position_element,
    required: required,
    selectionType: selection_type,
    showTimezone: show_timezone,
    staticPosition: static_position,
    thisRangesEndToday: this_ranges_end_today,
    yearRange: year_range,
  }.to_json.html_safe
end

def error_class

def error_class
  error ? " error" : ""
end

def icon_wrapper_class

def icon_wrapper_class
  class_string = "cal_icon_wrapper"
  class_string += " dark" if dark
  class_string += " no_label_shift" if hide_label
  class_string += error_class
  class_string
end