UNPKG

@ng-doc/ui-kit

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

1 lines 2.64 kB
{"version":3,"file":"ng-doc-ui-kit-components-button.mjs","sources":["../../../../libs/ui-kit/components/button/button.component.ts","../../../../libs/ui-kit/components/button/ng-doc-ui-kit-components-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';\nimport { NgDocColor, NgDocSize } from '@ng-doc/ui-kit/types';\n\n/**\n * `NgDocButtonComponent` is a reusable button component with customizable properties.\n * It can be used as a regular button, a flat button, or a text button.\n * @example\n * ```html\n * <button ng-doc-button [size]=\"'large'\" [color]=\"'secondary'\" [rounded]=\"true\">Click me</button>\n * ```\n */\n@Component({\n selector:\n 'button[ng-doc-button], a[ng-doc-button], button[ng-doc-button-flat], a[ng-doc-button-flat], button[ng-doc-button-text], a[ng-doc-button-text]',\n template: `<ng-content></ng-content>`,\n styleUrls: ['./button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class NgDocButtonComponent {\n /**\n * Size of the button. Can be 'small', 'medium', or 'large'.\n * Default is 'small'.\n */\n @Input()\n @HostBinding('attr.data-ng-doc-size')\n size: NgDocSize = 'small';\n\n /**\n * Color of the button. Can be 'primary', 'secondary', etc.\n * Default is 'primary'.\n */\n @Input()\n @HostBinding('attr.data-ng-doc-color')\n color: NgDocColor = 'primary';\n\n /**\n * Whether the button is rounded or not.\n * Default is false.\n */\n @Input()\n @HostBinding('attr.data-ng-doc-rounded')\n rounded: boolean = false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAGA;;;;;;;AAOG;MASU,oBAAoB,CAAA;AARjC,IAAA,WAAA,GAAA;AASE;;;AAGG;QAGH,IAAI,CAAA,IAAA,GAAc,OAAO;AAEzB;;;AAGG;QAGH,IAAK,CAAA,KAAA,GAAe,SAAS;AAE7B;;;AAGG;QAGH,IAAO,CAAA,OAAA,GAAY,KAAK;AACzB;8GAxBY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,2ZALrB,CAA2B,yBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,inNAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAK1B,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AAEN,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+IAA+I,YACvI,CAA2B,yBAAA,CAAA,EAAA,eAAA,EAEpB,uBAAuB,CAAC,MAAM,cACnC,IAAI,EAAA,MAAA,EAAA,CAAA,inNAAA,CAAA,EAAA;8BAShB,IAAI,EAAA,CAAA;sBAFH;;sBACA,WAAW;uBAAC,uBAAuB;gBASpC,KAAK,EAAA,CAAA;sBAFJ;;sBACA,WAAW;uBAAC,wBAAwB;gBASrC,OAAO,EAAA,CAAA;sBAFN;;sBACA,WAAW;uBAAC,0BAA0B;;;ACzCzC;;AAEG;;;;"}