<commit_before>@use "siimple:lib" as lib;

// Generate btn component configuration
@function btn() {
    @return lib.create-component-plugin((
        "id": "button",
        "name": "btn",
        "styles": (
            "appearance": none,
            //Disable default button element borders
            //https://github.com/siimple/siimple/pull/17
            "border": 0px,
            "cursor": pointer,
            "display": inline-block,
            "font-family": inherit,
            "font-size": inherit,
            "font-weight": bold,
            //min-height": 24px,
            "line-height": inherit,
            "min-width": 0px,
            "padding-bottom": 0.5rem,
            "padding-left": 1rem,
            "padding-right": 1rem,
            "padding-top": 0.5rem,
            "text-align": center,
            "text-decoration": none,
            "user-select": none,
            //Button hover style
            "&:hover": (
                //"opacity": 0.8,
                "text-decoration": none,
                "transition-duration": 0.3s,
                "transition-property": background-color,
            ),
        ),
        "variants": (
            "default": (
                "background-color": "primary",
                "border-radius": "normal",
                "color": "white",
            ),
            "disabled": (
                //background-color: $siimple-btn-disabled-background !important;
                //color: rgba($siimple-btn-disabled-color, $siimple-btn-disabled-color-alpha) !important;
                "cursor": "not-allowed !important",
                "opacity": "0.6 !important",
                //"pointer-events": "none",
            ),<commit_msg>Add secondary button variant<commit_after>@use "siimple:lib" as lib;

// Generate btn component configuration
@function btn() {
    @return lib.create-component-plugin((
        "id": "button",
        "name": "btn",
        "styles": (
            "appearance": none,
            //Disable default button element borders
            //https://github.com/siimple/siimple/pull/17
            "border": 0px,
            "cursor": pointer,
            "display": inline-block,
            "font-family": inherit,
            "font-size": inherit,
            "font-weight": bold,
            //min-height": 24px,
            "line-height": inherit,
            "min-width": 0px,
            "padding-bottom": 0.5rem,
            "padding-left": 1rem,
            "padding-right": 1rem,
            "padding-top": 0.5rem,
            "text-align": center,
            "text-decoration": none,
            "user-select": none,
            //Button hover style
            "&:hover": (
                //"opacity": 0.8,
                "text-decoration": none,
                "transition-duration": 0.3s,
                "transition-property": background-color,
            ),
        ),
        "variants": (
            "default": (
                "background-color": "primary",
                "border-radius": "normal",
                "color": "white",
            ),
            "secondary": (
                "background-color": "secondary",
                "color": "white",
            ),
            "disabled": (
                //background-color: $siimple-btn-disabled-background !important;
                //color: rgba($siimple-btn-disabled-color, $siimple-btn-disabled-color-alpha) !important;
                "cursor": "not-allowed !important",
                "opacity": "0.6 !important",
                //"pointer-events": "none",
            ),
{'fraction_non_alphanumeric': 0.14871651785714285, 'fraction_numerical': 0.010044642857142858, 'mean_word_length': 1.3836436170212767, 'pattern_counts': {'":': 71, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7187282', 'n_tokens_mistral': 999, 'n_tokens_neox': 932, 'n_words': 194}