<?php

/**
 * DO NOT EDIT!
 * This file was automatically generated via bin/generate-validator-spec.php.
 */

namespace AmpProject\Validator\Spec\Tag;

use AmpProject\Format;
use AmpProject\Html\Attribute;
use AmpProject\Protocol;
use AmpProject\Validator\Spec\Identifiable;
use AmpProject\Validator\Spec\SpecRule;
use AmpProject\Validator\Spec\Tag;

/**
 * Tag class AmpStoryGridLayerDefault.
 *
 * @package ampproject/amp-toolbox.
 *
 * @property-read string $tagName
 * @property-read string $specName
 * @property-read array $attrs
 * @property-read string $specUrl
 * @property-read array<array<string>> $referencePoints
 * @property-read array<string> $htmlFormat
 * @property-read string $descriptiveName
 */
final class AmpStoryGridLayerDefault extends Tag implements Identifiable
{
    /**
     * ID of the tag.
     *
     * @var string
     */
    const ID = 'AMP-STORY-GRID-LAYER default';

    /**
     * Array of spec rules.
     *
     * @var array
     */
    const SPEC = [
        SpecRule::TAG_NAME => '$REFERENCE_POINT',
        SpecRule::SPEC_NAME => 'AMP-STORY-GRID-LAYER default',
        SpecRule::ATTRS => [
            Attribute::ALIGN_CONTENT => [
                SpecRule::VALUE => [
                    'center',
                    'end',
                    'space-around',
                    'space-between',
                    'space-evenly',
                    'start',
                    'stretch',
                ],
            ],
            Attribute::TARGET => [
                SpecRule::VALUE => [
                    '_blank',
                ],
            ],
            Attribute::DATA_TOOLTIP_ICON => [
                SpecRule::VALUE_URL => [
                    SpecRule::PROTOCOL => [
                        Protocol::HTTP,
                        Protocol::HTTPS,
                        Protocol::DATA,
                    ],
                ],
            ],
            Attribute::ALIGN_ITEMS => [
                SpecRule::VALUE => [
                    'center',
                    'end',
                    'start',
                    'stretch',
                ],
            ],
            Attribute::ALIGN_SELF => [
                SpecRule::VALUE => [
                    'center',
                    'end',
                    'start',
                    'stretch',
                ],
            ],
            Attribute::ANIMATE_IN => [
                SpecRule::VALUE => [
                    'drop',
                    'fade-in',
                    'fly-in-bottom',
                    'fly-in-left',
                    'fly-in-right',
                    'fly-in-top',
                    'pan-down',
                    'pan-left',
                    'pan-right',
                    'pan-up',
                    'pulse',
                    'rotate-in-left',
                    'rotate-in-right',
                    'scale-fade-down',
                    'scale-fade-up',
                    'twirl-in',
                    'whoosh-in-left',
                    'whoosh-in-right',
                    'zoom-in',
                    'zoom-out',
                ],
            ],
            Attribute::ANIMATE_IN_AFTER => [],
            Attribute::ANIMATE_IN_DELAY => [],
            Attribute::ANIMATE_IN_DURATION => [],
            Attribute::ANIMATE_IN_TIMING_FUNCTION => [],
            Attribute::GRID_AREA => [],
            Attribute::INTERACTIVE => [
                SpecRule::VALUE => [
                    '',
                ],
            ],
            Attribute::SCALE_END => [
                SpecRule::VALUE_REGEX => '[0-9]+([.][0-9]+)?',
            ],
            Attribute::SCALE_START => [
                SpecRule::VALUE_REGEX => '[0-9]+([.][0-9]+)?',
            ],
            Attribute::TRANSLATE_X => [
                SpecRule::VALUE_REGEX_CASEI => '[0-9]+px',
            ],
            Attribute::TRANSLATE_Y => [
                SpecRule::VALUE_REGEX_CASEI => '[0-9]+px',
            ],
            Attribute::JUSTIFY_CONTENT => [
                SpecRule::VALUE => [
                    'center',
                    'end',
                    'space-around',
                    'space-between',
                    'space-evenly',
                    'start',
                    'stretch',
                ],
            ],
            Attribute::JUSTIFY_ITEMS => [
                SpecRule::VALUE => [
                    'center',
                    'end',
                    'start',
                    'stretch',
                ],
            ],
            Attribute::JUSTIFY_SELF => [
                SpecRule::VALUE => [
                    'center',
                    'end',
                    'start',
                    'stretch',
                ],
            ],
        ],
        SpecRule::SPEC_URL => 'https://amp.dev/documentation/components/amp-story/',
        SpecRule::REFERENCE_POINTS => [
            [
                SpecRule::TAG_SPEC_NAME => 'AMP-STORY-GRID-LAYER animate-in',
            ],
        ],
        SpecRule::HTML_FORMAT => [
            Format::AMP,
        ],
        SpecRule::DESCRIPTIVE_NAME => 'amp-story-grid-layer child',
    ];
}
