<?php
/**
 * WeCodeArt Framework
 *
 * WARNING: This file is part of the core WeCodeArt Framework. DO NOT edit this file under any circumstances.
 * Please do all modifications in the form of a child theme.
 *
 * @package 	WeCodeArt Framework 
 * @subpackage 	Markup\Inputs
 * @copyright   Copyright (c) 2025, WeCodeArt Framework
 * @since		6.2.0
 * @version		6.4.1
 */

namespace WeCodeArt\Support\DOM\Inputs;

defined( 'ABSPATH' ) || exit;

use WeCodeArt\Support\DOM\Inputs\Basic;
use function WeCodeArt\Functions\get_prop;

/**
 * Standard Inputs Markup
 */
class Date extends Basic {
    /**
     * Input's Style Deps.
     *
     * @since   6.4.1
     * @var     array
     */
    static $style_deps = [ 'basic' ];
    
    /**
	 * Constructor 
	 */
	public function __construct( string $type = 'date', array $args = [] ) {
        parent::__construct( $type, $args );
    }

    /**
	 * Input styles.
	 *
	 * @return 	string
	 */
	public static function styles(): string {
		return '
            ::-webkit-datetime-edit-fields-wrapper,
            ::-webkit-datetime-edit-text,
            ::-webkit-datetime-edit-minute,
            ::-webkit-datetime-edit-hour-field,
            ::-webkit-datetime-edit-day-field,
            ::-webkit-datetime-edit-month-field,
            ::-webkit-datetime-edit-year-field {
                padding: 0;
            }
            [list]::-webkit-calendar-picker-indicator {
                display: none;
            }
        ';
	}
}