@egose/shadcn-theme-ng 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/accordion/fesm2022/accordion.mjs +55 -55
  2. package/accordion/fesm2022/accordion.mjs.map +1 -1
  3. package/accordion/index.d.ts +21 -21
  4. package/alert/fesm2022/alert.mjs +125 -49
  5. package/alert/fesm2022/alert.mjs.map +1 -1
  6. package/alert/index.d.ts +23 -20
  7. package/badge/fesm2022/badge.mjs +8 -8
  8. package/badge/fesm2022/badge.mjs.map +1 -1
  9. package/badge/index.d.ts +4 -4
  10. package/basic-alert/README.md +64 -0
  11. package/basic-alert/fesm2022/basic-alert.mjs +111 -0
  12. package/basic-alert/fesm2022/basic-alert.mjs.map +1 -0
  13. package/basic-alert/index.d.ts +14 -0
  14. package/button/fesm2022/button.mjs +25 -25
  15. package/button/fesm2022/button.mjs.map +1 -1
  16. package/button/index.d.ts +9 -9
  17. package/calendar/README.md +64 -0
  18. package/calendar/fesm2022/calendar.mjs +637 -0
  19. package/calendar/fesm2022/calendar.mjs.map +1 -0
  20. package/calendar/index.d.ts +111 -0
  21. package/confirmation-dialog/README.md +64 -0
  22. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +93 -0
  23. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +1 -0
  24. package/confirmation-dialog/index.d.ts +24 -0
  25. package/date-picker/README.md +64 -0
  26. package/date-picker/fesm2022/date-picker.mjs +599 -0
  27. package/date-picker/fesm2022/date-picker.mjs.map +1 -0
  28. package/date-picker/index.d.ts +227 -0
  29. package/dialog/README.md +64 -0
  30. package/dialog/fesm2022/dialog.mjs +278 -0
  31. package/dialog/fesm2022/dialog.mjs.map +1 -0
  32. package/dialog/index.d.ts +89 -0
  33. package/exports.json +1 -1
  34. package/form-date-picker/README.md +64 -0
  35. package/form-date-picker/fesm2022/form-date-picker.mjs +146 -0
  36. package/form-date-picker/fesm2022/form-date-picker.mjs.map +1 -0
  37. package/form-date-picker/index.d.ts +32 -0
  38. package/form-field/fesm2022/form-field.mjs +36 -34
  39. package/form-field/fesm2022/form-field.mjs.map +1 -1
  40. package/form-field/index.d.ts +16 -16
  41. package/form-select/README.md +64 -0
  42. package/form-select/fesm2022/form-select.mjs +165 -0
  43. package/form-select/fesm2022/form-select.mjs.map +1 -0
  44. package/form-select/index.d.ts +33 -0
  45. package/form-text-input/README.md +64 -0
  46. package/form-text-input/fesm2022/form-text-input.mjs +197 -0
  47. package/form-text-input/fesm2022/form-text-input.mjs.map +1 -0
  48. package/form-text-input/index.d.ts +47 -0
  49. package/form-textarea/README.md +64 -0
  50. package/form-textarea/fesm2022/form-textarea.mjs +156 -0
  51. package/form-textarea/fesm2022/form-textarea.mjs.map +1 -0
  52. package/form-textarea/index.d.ts +33 -0
  53. package/icon/fesm2022/icon.mjs +20 -20
  54. package/icon/fesm2022/icon.mjs.map +1 -1
  55. package/icon/index.d.ts +13 -13
  56. package/input/fesm2022/input.mjs +20 -20
  57. package/input/fesm2022/input.mjs.map +1 -1
  58. package/input/index.d.ts +9 -9
  59. package/label/fesm2022/label.mjs +16 -16
  60. package/label/fesm2022/label.mjs.map +1 -1
  61. package/label/index.d.ts +9 -9
  62. package/package.json +41 -15
  63. package/popover/README.md +64 -0
  64. package/popover/fesm2022/popover.mjs +69 -0
  65. package/popover/fesm2022/popover.mjs.map +1 -0
  66. package/popover/index.d.ts +30 -0
  67. package/radio-group/fesm2022/radio-group.mjs +30 -30
  68. package/radio-group/fesm2022/radio-group.mjs.map +1 -1
  69. package/radio-group/index.d.ts +15 -15
  70. package/select/fesm2022/select.mjs +108 -108
  71. package/select/fesm2022/select.mjs.map +1 -1
  72. package/select/index.d.ts +35 -35
  73. package/sonner/fesm2022/sonner.mjs +16 -16
  74. package/sonner/fesm2022/sonner.mjs.map +1 -1
  75. package/sonner/index.d.ts +9 -9
  76. package/spinner/fesm2022/spinner.mjs +17 -17
  77. package/spinner/fesm2022/spinner.mjs.map +1 -1
  78. package/spinner/index.d.ts +9 -9
  79. package/switch/fesm2022/switch.mjs +27 -27
  80. package/switch/fesm2022/switch.mjs.map +1 -1
  81. package/switch/index.d.ts +12 -12
  82. package/tabs/fesm2022/tabs.mjs +53 -53
  83. package/tabs/fesm2022/tabs.mjs.map +1 -1
  84. package/tabs/index.d.ts +21 -21
  85. package/tooltip/fesm2022/tooltip.mjs +22 -22
  86. package/tooltip/fesm2022/tooltip.mjs.map +1 -1
  87. package/tooltip/index.d.ts +12 -12
  88. package/utils/fesm2022/utils.mjs +2 -2
  89. package/utils/fesm2022/utils.mjs.map +1 -1
  90. package/utils/index.d.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"alert.mjs","sources":["../../../projects/alert/src/lib/alert.ts","../../../projects/alert/src/lib/alert-description.ts","../../../projects/alert/src/lib/alert-icon.ts","../../../projects/alert/src/lib/alert-title.ts","../../../projects/alert/src/public-api.ts","../../../projects/alert/src/alert.ts"],"sourcesContent":["import { Directive, computed, input } from '@angular/core';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport { type VariantProps, cva } from 'class-variance-authority';\nimport type { ClassValue } from 'clsx';\n\nconst alertVariants = cva(\n 'tw:relative tw:w-full tw:items-start tw:gap-y-0.5 tw:rounded-lg tw:border tw:px-4 tw:py-3 tw:text-sm tw:has-[>[egAlertIcon]]:grid tw:has-[>[egAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] tw:has-[>[egAlertIcon]]:gap-x-3 tw:[&>[egAlertIcon]]:size-4 tw:[&>[egAlertIcon]]:translate-y-0.5 tw:[&>[egAlertIcon]]:text-current',\n {\n variants: {\n variant: {\n primary:\n 'tw:bg-primary tw:text-primary-foreground tw:[&>[egAlertDescription]]:text-primary-foreground/90 tw:[&>[egAlertDesc]]:text-primary-foreground/90',\n secondary:\n 'tw:bg-secondary tw:text-secondary-foreground tw:[&>[egAlertDescription]]:text-secondary-foreground/90 tw:[&>[egAlertDesc]]:text-secondary-foreground/90',\n success:\n 'tw:bg-success tw:text-success-foreground tw:[&>[egAlertDescription]]:text-success-foreground/90 tw:[&>[egAlertDesc]]:text-success-foreground/90',\n warning:\n 'tw:bg-warning tw:text-warning-foreground tw:[&>[egAlertDescription]]:text-warning-foreground/90 tw:[&>[egAlertDesc]]:text-warning-foreground/90',\n danger:\n 'tw:bg-danger tw:text-danger-foreground tw:[&>[egAlertDescription]]:text-danger-foreground/90 tw:[&>[egAlertDesc]]:text-danger-foreground/90',\n info: 'tw:bg-info tw:text-info-foreground tw:[&>[egAlertDescription]]:text-info-foreground/90 tw:[&>[egAlertDesc]]:text-info-foreground/90',\n light:\n 'tw:bg-light tw:text-light-foreground tw:[&>[egAlertDescription]]:text-light-foreground/90 tw:[&>[egAlertDesc]]:text-light-foreground/90',\n dark: 'tw:bg-dark tw:text-dark-foreground tw:[&>[egAlertDescription]]:text-dark-foreground/90 tw:[&>[egAlertDesc]]:text-dark-foreground/90',\n accent:\n 'tw:bg-accent tw:text-accent-foreground tw:[&>[egAlertDescription]]:text-accent-foreground/90 tw:[&>[egAlertDesc]]:text-accent-foreground/90',\n destructive:\n 'tw:bg-destructive tw:text-destructive-foreground tw:[&>[egAlertDescription]]:text-destructive-foreground/90 tw:[&>[egAlertDesc]]:text-destructive-foreground/90',\n muted:\n 'tw:bg-muted tw:text-muted-foreground tw:[&>[egAlertDescription]]:text-muted-foreground/90 tw:[&>[egAlertDesc]]:text-muted-foreground/90',\n link: 'tw:text-primary tw:underline-offset-4 tw:[&>[egAlertDescription]]:text-primary/90 tw:[&>[egAlertDesc]]:text-primary/90',\n ghost: 'tw:[&>[egAlertDescription]]:text-muted-foreground tw:[&>[egAlertDesc]]:text-muted-foreground',\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n },\n);\n\nexport type AlertVariants = VariantProps<typeof alertVariants>;\nexport type VariantType = NonNullable<AlertVariants['variant']>;\n\n@Directive({\n selector: '[egAlert]',\n host: {\n role: 'alert',\n '[class]': '_computedClass()',\n },\n})\nexport class EgAlert {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() => cn(alertVariants({ variant: this.variant() }), this.userClass()));\n\n public readonly variant = input<AlertVariants['variant']>('primary');\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[egAlertDesc],[egAlertDescription]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class EgAlertDescription {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n cn(\n 'tw:text-current tw:col-start-2 tw:grid tw:justify-items-start tw:gap-1 tw:text-sm tw:[&_p]:leading-relaxed',\n this.userClass(),\n ),\n );\n}\n","import { Directive } from '@angular/core';\nimport { provideEgIconConfig } from '@egose/shadcn-theme-ng/icon';\n\n@Directive({\n selector: '[egAlertIcon]',\n providers: [provideEgIconConfig({ size: 'sm' })],\n})\nexport class EgAlertIcon {}\n","import { Directive, computed, input } from '@angular/core';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[egAlertTitle]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class EgAlertTitle {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n cn('tw:col-start-2 tw:line-clamp-1 tw:min-h-4 tw:text-md tw:font-medium tw:tracking-tight', this.userClass()),\n );\n}\n","/*\n * Public API Surface of alert\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { EgAlert } from './lib/alert';\nimport { EgAlertDescription } from './lib/alert-description';\nimport { EgAlertIcon } from './lib/alert-icon';\nimport { EgAlertTitle } from './lib/alert-title';\n\nexport * from './lib/alert';\nexport * from './lib/alert-description';\nexport * from './lib/alert-icon';\nexport * from './lib/alert-title';\n\nexport const EgAlertImports = [EgAlert, EgAlertTitle, EgAlertDescription, EgAlertIcon] as const;\n\n@NgModule({\n imports: [...EgAlertImports],\n exports: [...EgAlertImports],\n})\nexport class EgAlertModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,aAAa,GAAG,GAAG,CACvB,uUAAuU,EACvU;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EACL,iJAAiJ;AACnJ,YAAA,SAAS,EACP,yJAAyJ;AAC3J,YAAA,OAAO,EACL,iJAAiJ;AACnJ,YAAA,OAAO,EACL,iJAAiJ;AACnJ,YAAA,MAAM,EACJ,6IAA6I;AAC/I,YAAA,IAAI,EAAE,qIAAqI;AAC3I,YAAA,KAAK,EACH,yIAAyI;AAC3I,YAAA,IAAI,EAAE,qIAAqI;AAC3I,YAAA,MAAM,EACJ,6IAA6I;AAC/I,YAAA,WAAW,EACT,iKAAiK;AACnK,YAAA,KAAK,EACH,yIAAyI;AAC3I,YAAA,IAAI,EAAE,wHAAwH;AAC9H,YAAA,KAAK,EAAE,8FAA8F;AACtG,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,SAAS;AACnB,KAAA;AACF,CAAA,CACF;MAYY,OAAO,CAAA;AACF,IAAA,SAAS,GAAG,KAAK,CAAa,EAAE,6CAAI,KAAK,EAAE,OAAO,EAAA,CAAA,GAAA,CAAhB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAC;IAClD,cAAc,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC;AAEpG,IAAA,OAAO,GAAG,KAAK,CAA2B,SAAS,mDAAC;uGAJzD,OAAO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xE,aAAa,EAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,cAAc,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,cAAc,CAAC;AAC7B,iBAAA;;;ACrBD;;AAEG;;;;"}
1
+ {"version":3,"file":"alert.mjs","sources":["../../../projects/alert/src/lib/alert.ts","../../../projects/alert/src/lib/alert-description.ts","../../../projects/alert/src/lib/alert-icon.ts","../../../projects/alert/src/lib/alert-title.ts","../../../projects/alert/src/public-api.ts","../../../projects/alert/src/alert.ts"],"sourcesContent":["import { Directive, computed, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport { type VariantProps, cva } from 'class-variance-authority';\nimport type { ClassValue } from 'clsx';\n\nconst alertVariants = cva(\n 'tw:relative tw:w-full tw:items-start tw:gap-y-0.5 tw:rounded-lg tw:border tw:px-4 tw:py-3 tw:text-sm tw:has-[>[hlmAlertIcon]]:grid tw:has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] tw:has-[>[hlmAlertIcon]]:gap-x-3 tw:[&>[hlmAlertIcon]]:size-4 tw:[&>[hlmAlertIcon]]:translate-y-0.5 tw:[&>[hlmAlertIcon]]:text-current',\n {\n variants: {\n variant: {\n primary: 'tw:bg-primary tw:text-primary-foreground tw:[&>[hlmAlertDescription]]:text-primary-foreground/90',\n secondary:\n 'tw:bg-secondary tw:text-secondary-foreground tw:[&>[hlmAlertDescription]]:text-secondary-foreground/90',\n success: 'tw:bg-success tw:text-success-foreground tw:[&>[hlmAlertDescription]]:text-success-foreground/90',\n warning: 'tw:bg-warning tw:text-warning-foreground tw:[&>[hlmAlertDescription]]:text-warning-foreground/90',\n danger: 'tw:bg-danger tw:text-danger-foreground tw:[&>[hlmAlertDescription]]:text-danger-foreground/90',\n info: 'tw:bg-info tw:text-info-foreground tw:[&>[hlmAlertDescription]]:text-info-foreground/90',\n light: 'tw:bg-light tw:text-light-foreground tw:[&>[hlmAlertDescription]]:text-light-foreground/90',\n dark: 'tw:bg-dark tw:text-dark-foreground tw:[&>[hlmAlertDescription]]:text-dark-foreground/90',\n accent: 'tw:bg-accent tw:text-accent-foreground tw:[&>[hlmAlertDescription]]:text-accent-foreground/90',\n destructive:\n 'tw:bg-destructive tw:text-destructive-foreground tw:[&>[hlmAlertDescription]]:text-destructive-foreground/90',\n muted: 'tw:bg-muted tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground/90',\n link: 'tw:text-primary tw:underline-offset-4 tw:[&>[hlmAlertDescription]]:text-primary/90',\n ghost: 'tw:[&>[hlmAlertDescription]]:text-muted-foreground',\n },\n appearance: {\n solid: '',\n light: 'tw:text-semibold',\n },\n },\n compoundVariants: [\n {\n variant: 'primary',\n appearance: 'light',\n class: 'tw:bg-primary/20 tw:text-primary tw:[&>[hlmAlertDescription]]:text-primary',\n },\n {\n variant: 'secondary',\n appearance: 'light',\n class: 'tw:bg-secondary/20 tw:text-secondary tw:[&>[hlmAlertDescription]]:text-secondary',\n },\n {\n variant: 'success',\n appearance: 'light',\n class: 'tw:bg-success/20 tw:text-success tw:[&>[hlmAlertDescription]]:text-success',\n },\n {\n variant: 'warning',\n appearance: 'light',\n class: 'tw:bg-warning/20 tw:text-warning tw:[&>[hlmAlertDescription]]:text-warning',\n },\n {\n variant: 'danger',\n appearance: 'light',\n class: 'tw:bg-danger/20 tw:text-danger tw:[&>[hlmAlertDescription]]:text-danger',\n },\n {\n variant: 'info',\n appearance: 'light',\n class: 'tw:bg-info/20 tw:text-info tw:[&>[hlmAlertDescription]]:text-info',\n },\n {\n variant: 'light',\n appearance: 'light',\n class: 'tw:bg-light/20 tw:text-light tw:[&>[hlmAlertDescription]]:text-light',\n },\n {\n variant: 'dark',\n appearance: 'light',\n class: 'tw:bg-dark/20 tw:text-dark tw:[&>[hlmAlertDescription]]:text-dark',\n },\n {\n variant: 'accent',\n appearance: 'light',\n class: 'tw:bg-accent/20 tw:text-accent tw:[&>[hlmAlertDescription]]:text-accent',\n },\n {\n variant: 'destructive',\n appearance: 'light',\n class: 'tw:bg-destructive/20 tw:text-destructive tw:[&>[hlmAlertDescription]]:text-destructive',\n },\n {\n variant: 'muted',\n appearance: 'light',\n class: 'tw:bg-muted/20 tw:text-muted tw:[&>[hlmAlertDescription]]:text-muted',\n },\n {\n variant: 'link',\n appearance: 'light',\n class: 'tw:bg-primary/10 tw:text-primary tw:[&>[hlmAlertDescription]]:text-primary',\n },\n {\n variant: 'ghost',\n appearance: 'light',\n class: 'tw:bg-muted/10 tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground',\n },\n ],\n defaultVariants: {\n variant: 'primary',\n appearance: 'solid',\n },\n },\n);\nexport type AlertVariants = VariantProps<typeof alertVariants>;\nexport type VariantType = NonNullable<AlertVariants['variant']>;\nexport type AppearanceType = NonNullable<AlertVariants['appearance']>;\n@Directive({\n selector: '[hlmAlert]',\n host: {\n role: 'alert',\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlert {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n public readonly variant = input<AlertVariants['variant']>('primary');\n public readonly appearance = input<AlertVariants['appearance']>('solid');\n protected readonly _computedClass = computed(() =>\n hlm(\n alertVariants({\n variant: this.variant(),\n appearance: this.appearance(),\n }),\n this.userClass(),\n ),\n );\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAlertDesc],[hlmAlertDescription]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlertDescription {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm(\n 'tw:text-current tw:col-start-2 tw:grid tw:justify-items-start tw:gap-1 tw:text-sm tw:[&_p]:leading-relaxed',\n this.userClass(),\n ),\n );\n}\n","import { Directive } from '@angular/core';\nimport { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';\n\n@Directive({\n selector: '[hlmAlertIcon]',\n providers: [provideHlmIconConfig({ size: 'sm' })],\n})\nexport class HlmAlertIcon {}\n","import { Directive, computed, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAlertTitle]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlertTitle {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm('tw:col-start-2 tw:line-clamp-1 tw:min-h-4 tw:text-md tw:font-semibold tw:tracking-tight', this.userClass()),\n );\n}\n","/*\n * Public API Surface of alert\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { HlmAlert } from './lib/alert';\nimport { HlmAlertDescription } from './lib/alert-description';\nimport { HlmAlertIcon } from './lib/alert-icon';\nimport { HlmAlertTitle } from './lib/alert-title';\n\nexport * from './lib/alert';\nexport * from './lib/alert-description';\nexport * from './lib/alert-icon';\nexport * from './lib/alert-title';\n\nexport const HlmAlertImports = [HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertIcon] as const;\n\n@NgModule({\n imports: [...HlmAlertImports],\n exports: [...HlmAlertImports],\n})\nexport class HlmAlertModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,aAAa,GAAG,GAAG,CACvB,6UAA6U,EAC7U;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,kGAAkG;AAC3G,YAAA,SAAS,EACP,wGAAwG;AAC1G,YAAA,OAAO,EAAE,kGAAkG;AAC3G,YAAA,OAAO,EAAE,kGAAkG;AAC3G,YAAA,MAAM,EAAE,+FAA+F;AACvG,YAAA,IAAI,EAAE,yFAAyF;AAC/F,Y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,CANK,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,CAAA,EAAA,OAAA,EAAA,CAA1D,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,CAAA,EAAA,CAAA;wGAM7E,cAAc,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,eAAe,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,GAAG,eAAe,CAAC;AAC9B,iBAAA;;;ACrBD;;AAEG;;;;"}
package/alert/index.d.ts CHANGED
@@ -5,42 +5,45 @@ import { ClassValue } from 'clsx';
5
5
 
6
6
  declare const alertVariants: (props?: ({
7
7
  variant?: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "light" | "dark" | "accent" | "destructive" | "muted" | "link" | "ghost" | null | undefined;
8
+ appearance?: "light" | "solid" | null | undefined;
8
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
10
  type AlertVariants = VariantProps<typeof alertVariants>;
10
11
  type VariantType = NonNullable<AlertVariants['variant']>;
11
- declare class EgAlert {
12
+ type AppearanceType = NonNullable<AlertVariants['appearance']>;
13
+ declare class HlmAlert {
12
14
  readonly userClass: i0.InputSignal<ClassValue>;
13
- protected readonly _computedClass: i0.Signal<string>;
14
15
  readonly variant: i0.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "info" | "light" | "dark" | "accent" | "destructive" | "muted" | "link" | "ghost" | null | undefined>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<EgAlert, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<EgAlert, "[egAlert]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
+ readonly appearance: i0.InputSignal<"light" | "solid" | null | undefined>;
17
+ protected readonly _computedClass: i0.Signal<string>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlert, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlert, "[hlmAlert]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
17
20
  }
18
21
 
19
- declare class EgAlertDescription {
22
+ declare class HlmAlertDescription {
20
23
  readonly userClass: i0.InputSignal<ClassValue>;
21
24
  protected readonly _computedClass: i0.Signal<string>;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<EgAlertDescription, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<EgAlertDescription, "[egAlertDesc],[egAlertDescription]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDescription, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDescription, "[hlmAlertDesc],[hlmAlertDescription]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
27
  }
25
28
 
26
- declare class EgAlertIcon {
27
- static ɵfac: i0.ɵɵFactoryDeclaration<EgAlertIcon, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<EgAlertIcon, "[egAlertIcon]", never, {}, {}, never, never, true, never>;
29
+ declare class HlmAlertIcon {
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertIcon, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertIcon, "[hlmAlertIcon]", never, {}, {}, never, never, true, never>;
29
32
  }
30
33
 
31
- declare class EgAlertTitle {
34
+ declare class HlmAlertTitle {
32
35
  readonly userClass: i0.InputSignal<ClassValue>;
33
36
  protected readonly _computedClass: i0.Signal<string>;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<EgAlertTitle, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<EgAlertTitle, "[egAlertTitle]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertTitle, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertTitle, "[hlmAlertTitle]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
36
39
  }
37
40
 
38
- declare const EgAlertImports: readonly [typeof EgAlert, typeof EgAlertTitle, typeof EgAlertDescription, typeof EgAlertIcon];
39
- declare class EgAlertModule {
40
- static ɵfac: i0.ɵɵFactoryDeclaration<EgAlertModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<EgAlertModule, never, [typeof EgAlert, typeof EgAlertTitle, typeof EgAlertDescription, typeof EgAlertIcon], [typeof EgAlert, typeof EgAlertTitle, typeof EgAlertDescription, typeof EgAlertIcon]>;
42
- static ɵinj: i0.ɵɵInjectorDeclaration<EgAlertModule>;
41
+ declare const HlmAlertImports: readonly [typeof HlmAlert, typeof HlmAlertTitle, typeof HlmAlertDescription, typeof HlmAlertIcon];
42
+ declare class HlmAlertModule {
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertModule, never>;
44
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HlmAlertModule, never, [typeof HlmAlert, typeof HlmAlertTitle, typeof HlmAlertDescription, typeof HlmAlertIcon], [typeof HlmAlert, typeof HlmAlertTitle, typeof HlmAlertDescription, typeof HlmAlertIcon]>;
45
+ static ɵinj: i0.ɵɵInjectorDeclaration<HlmAlertModule>;
43
46
  }
44
47
 
45
- export { EgAlert, EgAlertDescription, EgAlertIcon, EgAlertImports, EgAlertModule, EgAlertTitle };
46
- export type { AlertVariants, VariantType };
48
+ export { HlmAlert, HlmAlertDescription, HlmAlertIcon, HlmAlertImports, HlmAlertModule, HlmAlertTitle };
49
+ export type { AlertVariants, AppearanceType, VariantType };
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { signal, computed, Input, Component } from '@angular/core';
3
3
  import { cva } from 'class-variance-authority';
4
- import { cn } from '@egose/shadcn-theme-ng/utils';
4
+ import { hlm } from '@egose/shadcn-theme-ng/utils';
5
5
 
6
6
  /* Tailwind + CVA variant config */
7
7
  const badgeVariants = cva([
@@ -48,7 +48,7 @@ const badgeVariants = cva([
48
48
  appearance: 'solid',
49
49
  },
50
50
  });
51
- class EgBadge {
51
+ class HlmBadge {
52
52
  /** Props */
53
53
  variant = 'primary';
54
54
  size = 'default';
@@ -63,7 +63,7 @@ class EgBadge {
63
63
  if (this.appearance === 'outline-filled') {
64
64
  outlineClasses.push(this.getOutlineFilledClasses(this.variant));
65
65
  }
66
- return cn(badgeVariants({
66
+ return hlm(badgeVariants({
67
67
  variant: this.variant,
68
68
  size: this.size,
69
69
  appearance: this.appearance,
@@ -110,13 +110,13 @@ class EgBadge {
110
110
  };
111
111
  return colors[variant];
112
112
  }
113
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: EgBadge, deps: [], target: i0.ɵɵFactoryTarget.Component });
114
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: EgBadge, isStandalone: true, selector: "span[egBadge], a[egBadge]", inputs: { variant: "variant", size: "size", appearance: "appearance", userClass: "userClass" }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true });
113
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmBadge, deps: [], target: i0.ɵɵFactoryTarget.Component });
114
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: HlmBadge, isStandalone: true, selector: "span[hlmBadge], a[hlmBadge]", inputs: { variant: "variant", size: "size", appearance: "appearance", userClass: "userClass" }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true });
115
115
  }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: EgBadge, decorators: [{
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmBadge, decorators: [{
117
117
  type: Component,
118
118
  args: [{
119
- selector: 'span[egBadge], a[egBadge]',
119
+ selector: 'span[hlmBadge], a[hlmBadge]',
120
120
  standalone: true,
121
121
  imports: [],
122
122
  host: {
@@ -142,5 +142,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
142
142
  * Generated bundle index. Do not edit.
143
143
  */
144
144
 
145
- export { EgBadge, badgeVariants };
145
+ export { HlmBadge, badgeVariants };
146
146
  //# sourceMappingURL=badge.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.mjs","sources":["../../../projects/badge/src/lib/badge.ts","../../../projects/badge/src/public-api.ts","../../../projects/badge/src/badge.ts"],"sourcesContent":["import { Component, Input, computed, signal } from '@angular/core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { type ClassValue } from 'clsx';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\n\n/* Tailwind + CVA variant config */\nexport const badgeVariants = cva(\n [\n 'tw:inline-flex',\n 'tw:items-center',\n 'tw:rounded-sm',\n 'tw:font-medium',\n 'tw:whitespace-nowrap',\n 'tw:transition-colors',\n 'tw:focus-visible:outline-none',\n 'tw:focus-visible:ring-1',\n 'tw:focus-visible:ring-ring',\n ],\n {\n variants: {\n variant: {\n primary: 'tw:bg-primary tw:text-primary-foreground tw:hover:bg-primary/90',\n secondary: 'tw:bg-secondary tw:text-secondary-foreground tw:hover:bg-secondary/90',\n success: 'tw:bg-success tw:text-success-foreground tw:hover:bg-success/90',\n warning: 'tw:bg-warning tw:text-warning-foreground tw:hover:bg-warning/90',\n danger: 'tw:bg-danger tw:text-danger-foreground tw:hover:bg-danger/90',\n info: 'tw:bg-info tw:text-info-foreground tw:hover:bg-info/90',\n light: 'tw:bg-light tw:text-light-foreground tw:hover:bg-light/90',\n dark: 'tw:bg-dark tw:text-dark-foreground tw:hover:bg-dark/90',\n accent: 'tw:bg-accent tw:text-accent-foreground tw:hover:bg-accent/90',\n destructive: 'tw:bg-destructive tw:text-destructive-foreground tw:hover:bg-destructive/90',\n muted: 'tw:bg-muted tw:text-muted-foreground tw:hover:bg-muted/90',\n link: 'tw:text-primary tw:underline-offset-4 tw:hover:underline',\n ghost: 'tw:hover:bg-light tw:hover:text-light-foreground',\n },\n size: {\n sm: 'tw:h-5 tw:px-2 tw:text-xs',\n default: 'tw:h-6 tw:px-3 tw:text-sm',\n lg: 'tw:h-7 tw:px-4 tw:text-base',\n },\n appearance: {\n solid: '',\n outline: 'tw:bg-white tw:border',\n 'outline-filled': 'tw:bg-white tw:border',\n },\n },\n defaultVariants: {\n variant: 'primary',\n size: 'default',\n appearance: 'solid',\n },\n },\n);\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>;\nexport type BadgeVariantType = NonNullable<BadgeVariants['variant']>;\nexport type BadgeSizeType = NonNullable<BadgeVariants['size']>;\nexport type BadgeAppearanceType = NonNullable<BadgeVariants['appearance']>;\n\n@Component({\n selector: 'span[egBadge], a[egBadge]',\n standalone: true,\n imports: [],\n host: {\n '[class]': '_computedClass()',\n },\n template: ` <ng-content></ng-content> `,\n})\nexport class EgBadge {\n /** Props */\n @Input() variant: BadgeVariantType = 'primary';\n @Input() size: BadgeSizeType = 'default';\n @Input() appearance: BadgeAppearanceType = 'solid';\n @Input() userClass: ClassValue = '';\n\n private readonly _additionalClasses = signal<ClassValue>('');\n\n /** Computed badge class merging */\n protected readonly _computedClass = computed(() => {\n const outlineClasses =\n this.appearance === 'outline' || this.appearance === 'outline-filled'\n ? [this.getOutlineClasses(this.variant)]\n : [];\n if (this.appearance === 'outline-filled') {\n outlineClasses.push(this.getOutlineFilledClasses(this.variant));\n }\n return cn(\n badgeVariants({\n variant: this.variant,\n size: this.size,\n appearance: this.appearance,\n className: this.userClass,\n }),\n outlineClasses,\n this._additionalClasses(),\n );\n });\n\n setClass(classes: string): void {\n this._additionalClasses.set(classes);\n }\n\n /** Helper functions */\n private getOutlineClasses(variant: BadgeVariantType) {\n const colors: Record<BadgeVariantType, string> = {\n primary: 'tw:border-primary tw:text-primary tw:hover:bg-primary/10',\n secondary: 'tw:border-secondary tw:text-secondary tw:hover:bg-secondary/10',\n success: 'tw:border-success tw:text-success tw:hover:bg-success/10',\n warning: 'tw:border-warning tw:text-warning tw:hover:bg-warning/10',\n danger: 'tw:border-danger tw:text-danger tw:hover:bg-danger/10',\n info: 'tw:border-info tw:text-info tw:hover:bg-info/10',\n light: 'tw:border-light tw:text-light-foreground tw:hover:bg-light/10',\n dark: 'tw:border-dark tw:text-dark tw:hover:bg-dark/10',\n accent: 'tw:border-accent tw:text-accent tw:hover:bg-accent/10',\n destructive: 'tw:border-destructive tw:text-destructive tw:hover:bg-destructive/10',\n muted: 'tw:border-muted tw:text-muted-foreground tw:hover:bg-muted/10',\n link: 'tw:text-primary',\n ghost: 'tw:text-light-foreground',\n };\n return colors[variant];\n }\n\n private getOutlineFilledClasses(variant: BadgeVariantType) {\n const colors: Record<BadgeVariantType, string> = {\n primary: 'tw:hover:bg-primary tw:hover:text-primary-foreground',\n secondary: 'tw:hover:bg-secondary tw:hover:text-secondary-foreground',\n success: 'tw:hover:bg-success tw:hover:text-success-foreground',\n warning: 'tw:hover:bg-warning tw:hover:text-warning-foreground',\n danger: 'tw:hover:bg-danger tw:hover:text-danger-foreground',\n info: 'tw:hover:bg-info tw:hover:text-info-foreground',\n light: 'tw:hover:bg-light tw:hover:text-light-foreground',\n dark: 'tw:hover:bg-dark tw:hover:text-dark-foreground',\n accent: 'tw:hover:bg-accent tw:hover:text-accent-foreground',\n destructive: 'tw:hover:bg-destructive tw:hover:text-destructive-foreground',\n muted: 'tw:hover:bg-muted tw:hover:text-muted-foreground',\n link: 'tw:hover:underline',\n ghost: 'tw:hover:bg-light',\n };\n return colors[variant];\n }\n}\n","/*\n * Public API Surface of badge\n */\n\nexport * from './lib/badge';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;AACO,MAAM,aAAa,GAAG,GAAG,CAC9B;IACE,gBAAgB;IAChB,iBAAiB;IACjB,eAAe;IACf,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;IACtB,+BAA+B;IAC/B,yBAAyB;IACzB,4BAA4B;CAC7B,EACD;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,iEAAiE;AAC1E,YAAA,SAAS,EAAE,uEAAuE;AAClF,YAAA,OAAO,EAAE,iEAAiE;AAC1E,YAAA,OAAO,EAAE,iEAAiE;AAC1E,YAAA,MAAM,EAAE,8DAA8D;AACtE,YAAA,IAAI,EAAE,wDAAwD;AAC9D,YAAA,KAAK,EAAE,2DAA2D;AAClE,YAAA,IAAI,EAAE,wDAAwD;AAC9D,YAAA,MAAM,EAAE,8DAA8D;AACtE,YAAA,WAAW,EAAE,6EAA6E;AAC1F,YAAA,KAAK,EAAE,2DAA2D;AAClE,YAAA,IAAI,EAAE,0DAA0D;AAChE,YAAA,KAAK,EAAE,kDAAkD;AAC1D,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,EAAE,EAAE,2BAA2B;AAC/B,YAAA,OAAO,EAAE,2BAA2B;AACpC,YAAA,EAAE,EAAE,6BAA6B;AAClC,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,OAAO,EAAE,uBAAuB;AAChC,YAAA,gBAAgB,EAAE,uBAAuB;AAC1C,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,UAAU,EAAE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AAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,kBAAkB;AAC9B,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA,2BAAA,CAA6B;AACxC,iBAAA;8BAGU,OAAO,EAAA,CAAA;sBAAf;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;;;ACzEH;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"badge.mjs","sources":["../../../projects/badge/src/lib/badge.ts","../../../projects/badge/src/public-api.ts","../../../projects/badge/src/badge.ts"],"sourcesContent":["import { Component, Input, computed, signal } from '@angular/core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { type ClassValue } from 'clsx';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\n\n/* Tailwind + CVA variant config */\nexport const badgeVariants = cva(\n [\n 'tw:inline-flex',\n 'tw:items-center',\n 'tw:rounded-sm',\n 'tw:font-medium',\n 'tw:whitespace-nowrap',\n 'tw:transition-colors',\n 'tw:focus-visible:outline-none',\n 'tw:focus-visible:ring-1',\n 'tw:focus-visible:ring-ring',\n ],\n {\n variants: {\n variant: {\n primary: 'tw:bg-primary tw:text-primary-foreground tw:hover:bg-primary/90',\n secondary: 'tw:bg-secondary tw:text-secondary-foreground tw:hover:bg-secondary/90',\n success: 'tw:bg-success tw:text-success-foreground tw:hover:bg-success/90',\n warning: 'tw:bg-warning tw:text-warning-foreground tw:hover:bg-warning/90',\n danger: 'tw:bg-danger tw:text-danger-foreground tw:hover:bg-danger/90',\n info: 'tw:bg-info tw:text-info-foreground tw:hover:bg-info/90',\n light: 'tw:bg-light tw:text-light-foreground tw:hover:bg-light/90',\n dark: 'tw:bg-dark tw:text-dark-foreground tw:hover:bg-dark/90',\n accent: 'tw:bg-accent tw:text-accent-foreground tw:hover:bg-accent/90',\n destructive: 'tw:bg-destructive tw:text-destructive-foreground tw:hover:bg-destructive/90',\n muted: 'tw:bg-muted tw:text-muted-foreground tw:hover:bg-muted/90',\n link: 'tw:text-primary tw:underline-offset-4 tw:hover:underline',\n ghost: 'tw:hover:bg-light tw:hover:text-light-foreground',\n },\n size: {\n sm: 'tw:h-5 tw:px-2 tw:text-xs',\n default: 'tw:h-6 tw:px-3 tw:text-sm',\n lg: 'tw:h-7 tw:px-4 tw:text-base',\n },\n appearance: {\n solid: '',\n outline: 'tw:bg-white tw:border',\n 'outline-filled': 'tw:bg-white tw:border',\n },\n },\n defaultVariants: {\n variant: 'primary',\n size: 'default',\n appearance: 'solid',\n },\n },\n);\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>;\nexport type BadgeVariantType = NonNullable<BadgeVariants['variant']>;\nexport type BadgeSizeType = NonNullable<BadgeVariants['size']>;\nexport type BadgeAppearanceType = NonNullable<BadgeVariants['appearance']>;\n\n@Component({\n selector: 'span[hlmBadge], a[hlmBadge]',\n standalone: true,\n imports: [],\n host: {\n '[class]': '_computedClass()',\n },\n template: ` <ng-content></ng-content> `,\n})\nexport class HlmBadge {\n /** Props */\n @Input() variant: BadgeVariantType = 'primary';\n @Input() size: BadgeSizeType = 'default';\n @Input() appearance: BadgeAppearanceType = 'solid';\n @Input() userClass: ClassValue = '';\n\n private readonly _additionalClasses = signal<ClassValue>('');\n\n /** Computed badge class merging */\n protected readonly _computedClass = computed(() => {\n const outlineClasses =\n this.appearance === 'outline' || this.appearance === 'outline-filled'\n ? [this.getOutlineClasses(this.variant)]\n : [];\n if (this.appearance === 'outline-filled') {\n outlineClasses.push(this.getOutlineFilledClasses(this.variant));\n }\n return hlm(\n badgeVariants({\n variant: this.variant,\n size: this.size,\n appearance: this.appearance,\n className: this.userClass,\n }),\n outlineClasses,\n this._additionalClasses(),\n );\n });\n\n setClass(classes: string): void {\n this._additionalClasses.set(classes);\n }\n\n /** Helper functions */\n private getOutlineClasses(variant: BadgeVariantType) {\n const colors: Record<BadgeVariantType, string> = {\n primary: 'tw:border-primary tw:text-primary tw:hover:bg-primary/10',\n secondary: 'tw:border-secondary tw:text-secondary tw:hover:bg-secondary/10',\n success: 'tw:border-success tw:text-success tw:hover:bg-success/10',\n warning: 'tw:border-warning tw:text-warning tw:hover:bg-warning/10',\n danger: 'tw:border-danger tw:text-danger tw:hover:bg-danger/10',\n info: 'tw:border-info tw:text-info tw:hover:bg-info/10',\n light: 'tw:border-light tw:text-light-foreground tw:hover:bg-light/10',\n dark: 'tw:border-dark tw:text-dark tw:hover:bg-dark/10',\n accent: 'tw:border-accent tw:text-accent tw:hover:bg-accent/10',\n destructive: 'tw:border-destructive tw:text-destructive tw:hover:bg-destructive/10',\n muted: 'tw:border-muted tw:text-muted-foreground tw:hover:bg-muted/10',\n link: 'tw:text-primary',\n ghost: 'tw:text-light-foreground',\n };\n return colors[variant];\n }\n\n private getOutlineFilledClasses(variant: BadgeVariantType) {\n const colors: Record<BadgeVariantType, string> = {\n primary: 'tw:hover:bg-primary tw:hover:text-primary-foreground',\n secondary: 'tw:hover:bg-secondary tw:hover:text-secondary-foreground',\n success: 'tw:hover:bg-success tw:hover:text-success-foreground',\n warning: 'tw:hover:bg-warning tw:hover:text-warning-foreground',\n danger: 'tw:hover:bg-danger tw:hover:text-danger-foreground',\n info: 'tw:hover:bg-info tw:hover:text-info-foreground',\n light: 'tw:hover:bg-light tw:hover:text-light-foreground',\n dark: 'tw:hover:bg-dark tw:hover:text-dark-foreground',\n accent: 'tw:hover:bg-accent tw:hover:text-accent-foreground',\n destructive: 'tw:hover:bg-destructive tw:hover:text-destructive-foreground',\n muted: 'tw:hover:bg-muted tw:hover:text-muted-foreground',\n link: 'tw:hover:underline',\n ghost: 'tw:hover:bg-light',\n };\n return colors[variant];\n }\n}\n","/*\n * Public API Surface of badge\n */\n\nexport * from './lib/badge';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;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;8BAGU,OAAO,EAAA,CAAA;sBAAf;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;;;ACzEH;;AAEG;;ACFH;;AAEG;;;;"}
package/badge/index.d.ts CHANGED
@@ -12,7 +12,7 @@ type BadgeVariants = VariantProps<typeof badgeVariants>;
12
12
  type BadgeVariantType = NonNullable<BadgeVariants['variant']>;
13
13
  type BadgeSizeType = NonNullable<BadgeVariants['size']>;
14
14
  type BadgeAppearanceType = NonNullable<BadgeVariants['appearance']>;
15
- declare class EgBadge {
15
+ declare class HlmBadge {
16
16
  /** Props */
17
17
  variant: BadgeVariantType;
18
18
  size: BadgeSizeType;
@@ -25,9 +25,9 @@ declare class EgBadge {
25
25
  /** Helper functions */
26
26
  private getOutlineClasses;
27
27
  private getOutlineFilledClasses;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<EgBadge, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<EgBadge, "span[egBadge], a[egBadge]", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "userClass": { "alias": "userClass"; "required": false; }; }, {}, never, ["*"], true, never>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmBadge, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmBadge, "span[hlmBadge], a[hlmBadge]", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "userClass": { "alias": "userClass"; "required": false; }; }, {}, never, ["*"], true, never>;
30
30
  }
31
31
 
32
- export { EgBadge, badgeVariants };
32
+ export { HlmBadge, badgeVariants };
33
33
  export type { BadgeAppearanceType, BadgeSizeType, BadgeVariantType, BadgeVariants };
@@ -0,0 +1,64 @@
1
+ # BasicAlert
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build basic-alert
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+
35
+ ```bash
36
+ cd dist/basic-alert
37
+ ```
38
+
39
+ 2. Run the `npm publish` command to publish your library to the npm registry:
40
+ ```bash
41
+ npm publish
42
+ ```
43
+
44
+ ## Running unit tests
45
+
46
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
47
+
48
+ ```bash
49
+ ng test
50
+ ```
51
+
52
+ ## Running end-to-end tests
53
+
54
+ For end-to-end (e2e) testing, run:
55
+
56
+ ```bash
57
+ ng e2e
58
+ ```
59
+
60
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
61
+
62
+ ## Additional Resources
63
+
64
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -0,0 +1,111 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Input, Component } from '@angular/core';
3
+ import { NgIcon, provideIcons } from '@ng-icons/core';
4
+ import { lucideGhost, lucideLink, lucideZap, lucideThumbsUp, lucideStar, lucideBell, lucideCircleAlert, lucideBatteryWarning, lucideInfo, lucideCircleCheck } from '@ng-icons/lucide';
5
+ import { HlmAlert, HlmAlertIcon, HlmAlertTitle, HlmAlertDescription } from '@egose/shadcn-theme-ng/alert';
6
+ import { HlmIcon } from '@egose/shadcn-theme-ng/icon';
7
+
8
+ class EgBasicAlert {
9
+ variant = 'info';
10
+ appearance = 'solid';
11
+ title = '';
12
+ description = '';
13
+ getIconName(variant) {
14
+ switch (variant) {
15
+ case 'success':
16
+ return 'lucideCircleCheck';
17
+ case 'info':
18
+ return 'lucideInfo';
19
+ case 'warning':
20
+ return 'lucideBatteryWarning';
21
+ case 'danger':
22
+ case 'destructive':
23
+ return 'lucideCircleAlert';
24
+ case 'muted':
25
+ return 'lucideBell';
26
+ case 'accent':
27
+ return 'lucideStar';
28
+ case 'primary':
29
+ return 'lucideThumbsUp';
30
+ case 'secondary':
31
+ return 'lucideZap';
32
+ case 'link':
33
+ return 'lucideLink';
34
+ case 'ghost':
35
+ return 'lucideGhost';
36
+ case 'light':
37
+ case 'dark':
38
+ default:
39
+ return 'lucideInfo';
40
+ }
41
+ }
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: EgBasicAlert, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.0", type: EgBasicAlert, isStandalone: true, selector: "eg-basic-alert", inputs: { variant: "variant", appearance: "appearance", title: "title", description: "description" }, providers: [
44
+ provideIcons({
45
+ lucideCircleCheck,
46
+ lucideInfo,
47
+ lucideBatteryWarning,
48
+ lucideCircleAlert,
49
+ lucideBell,
50
+ lucideStar,
51
+ lucideThumbsUp,
52
+ lucideZap,
53
+ lucideLink,
54
+ lucideGhost,
55
+ }),
56
+ ], ngImport: i0, template: `
57
+ <div hlmAlert [variant]="variant" [appearance]="appearance" class="">
58
+ <ng-icon hlm hlmAlertIcon [name]="getIconName(variant)" />
59
+ <h4 hlmAlertTitle class="tw:capitalize">{{ title }}</h4>
60
+ <p hlmAlertDescription>{{ description }}</p>
61
+ </div>
62
+ `, isInline: true, dependencies: [{ kind: "directive", type: HlmAlert, selector: "[hlmAlert]", inputs: ["class", "variant", "appearance"] }, { kind: "directive", type: HlmAlertIcon, selector: "[hlmAlertIcon]" }, { kind: "directive", type: HlmAlertTitle, selector: "[hlmAlertTitle]", inputs: ["class"] }, { kind: "directive", type: HlmAlertDescription, selector: "[hlmAlertDesc],[hlmAlertDescription]", inputs: ["class"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: HlmIcon, selector: "ng-icon[hlm]", inputs: ["size"] }] });
63
+ }
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: EgBasicAlert, decorators: [{
65
+ type: Component,
66
+ args: [{
67
+ selector: 'eg-basic-alert',
68
+ standalone: true,
69
+ imports: [HlmAlert, HlmAlertIcon, HlmAlertTitle, HlmAlertDescription, NgIcon, HlmIcon],
70
+ providers: [
71
+ provideIcons({
72
+ lucideCircleCheck,
73
+ lucideInfo,
74
+ lucideBatteryWarning,
75
+ lucideCircleAlert,
76
+ lucideBell,
77
+ lucideStar,
78
+ lucideThumbsUp,
79
+ lucideZap,
80
+ lucideLink,
81
+ lucideGhost,
82
+ }),
83
+ ],
84
+ template: `
85
+ <div hlmAlert [variant]="variant" [appearance]="appearance" class="">
86
+ <ng-icon hlm hlmAlertIcon [name]="getIconName(variant)" />
87
+ <h4 hlmAlertTitle class="tw:capitalize">{{ title }}</h4>
88
+ <p hlmAlertDescription>{{ description }}</p>
89
+ </div>
90
+ `,
91
+ }]
92
+ }], propDecorators: { variant: [{
93
+ type: Input
94
+ }], appearance: [{
95
+ type: Input
96
+ }], title: [{
97
+ type: Input
98
+ }], description: [{
99
+ type: Input
100
+ }] } });
101
+
102
+ /*
103
+ * Public API Surface of basic-alert
104
+ */
105
+
106
+ /**
107
+ * Generated bundle index. Do not edit.
108
+ */
109
+
110
+ export { EgBasicAlert };
111
+ //# sourceMappingURL=basic-alert.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-alert.mjs","sources":["../../../projects/basic-alert/src/lib/basic-alert.ts","../../../projects/basic-alert/src/public-api.ts","../../../projects/basic-alert/src/basic-alert.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport {\n lucideCircleAlert,\n lucideCircleCheck,\n lucideInfo,\n lucideBatteryWarning,\n lucideBell,\n lucideStar,\n lucideThumbsUp,\n lucideZap,\n lucideLink,\n lucideGhost,\n} from '@ng-icons/lucide';\nimport {\n HlmAlert,\n HlmAlertIcon,\n HlmAlertTitle,\n HlmAlertDescription,\n type VariantType,\n type AppearanceType,\n} from '@egose/shadcn-theme-ng/alert';\nimport { HlmIcon } from '@egose/shadcn-theme-ng/icon';\n\n@Component({\n selector: 'eg-basic-alert',\n standalone: true,\n imports: [HlmAlert, HlmAlertIcon, HlmAlertTitle, HlmAlertDescription, NgIcon, HlmIcon],\n providers: [\n provideIcons({\n lucideCircleCheck,\n lucideInfo,\n lucideBatteryWarning,\n lucideCircleAlert,\n lucideBell,\n lucideStar,\n lucideThumbsUp,\n lucideZap,\n lucideLink,\n lucideGhost,\n }),\n ],\n template: `\n <div hlmAlert [variant]=\"variant\" [appearance]=\"appearance\" class=\"\">\n <ng-icon hlm hlmAlertIcon [name]=\"getIconName(variant)\" />\n <h4 hlmAlertTitle class=\"tw:capitalize\">{{ title }}</h4>\n <p hlmAlertDescription>{{ description }}</p>\n </div>\n `,\n})\nexport class EgBasicAlert {\n @Input() variant: VariantType = 'info';\n @Input() appearance: AppearanceType = 'solid';\n @Input() title = '';\n @Input() description = '';\n\n getIconName(variant: VariantType): string {\n switch (variant) {\n case 'success':\n return 'lucideCircleCheck';\n case 'info':\n return 'lucideInfo';\n case 'warning':\n return 'lucideBatteryWarning';\n case 'danger':\n case 'destructive':\n return 'lucideCircleAlert';\n case 'muted':\n return 'lucideBell';\n case 'accent':\n return 'lucideStar';\n case 'primary':\n return 'lucideThumbsUp';\n case 'secondary':\n return 'lucideZap';\n case 'link':\n return 'lucideLink';\n case 'ghost':\n return 'lucideGhost';\n case 'light':\n case 'dark':\n default:\n return 'lucideInfo';\n }\n }\n}\n","/*\n * Public API Surface of basic-alert\n */\n\nexport * from './lib/basic-alert';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MAkDa,YAAY,CAAA;IACd,OAAO,GAAgB,MAAM;IAC7B,UAAU,GAAmB,OAAO;IACpC,KAAK,GAAG,EAAE;IACV,WAAW,GAAG,EAAE;AAEzB,IAAA,WAAW,CAAC,OAAoB,EAAA;QAC9B,QAAQ,OAAO;AACb,YAAA,KAAK,SAAS;AACZ,gBAAA,OAAO,mBAAmB;AAC5B,YAAA,KAAK,MAAM;AACT,gBAAA,OAAO,YAAY;AACrB,YAAA,KAAK,SAAS;AACZ,gBAAA,OAAO,sBAAsB;AAC/B,YAAA,KAAK,QAAQ;AACb,YAAA,KAAK,aAAa;AAChB,gBAAA,OAAO,mBAAmB;AAC5B,YAAA,KAAK,OAAO;AACV,gBAAA,OAAO,YAAY;AACrB,YAAA,KAAK,QAAQ;AACX,gBAAA,OAAO,YAAY;AACrB,YAAA,KAAK,SAAS;AACZ,gBAAA,OAAO,gBAAgB;AACzB,YAAA,KAAK,WAAW;AACd,gBAAA,OAAO,WAAW;AACpB,YAAA,KAAK,MAAM;AACT,gBAAA,OAAO,YAAY;AACrB,YAAA,KAAK,OAAO;AACV,gBAAA,OAAO,aAAa;AACtB,YAAA,KAAK,OAAO;AACZ,YAAA,KAAK,MAAM;AACX,YAAA;AACE,gBAAA,OAAO,YAAY;;IAEzB;uGAlCW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA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ChB,oBAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC;AACtF,oBAAA,SAAS,EAAE;AACT,wBAAA,YAAY,CAAC;4BACX,iBAAiB;4BACjB,UAAU;4BACV,oBAAoB;4BACpB,iBAAiB;4BACjB,UAAU;4BACV,UAAU;4BACV,cAAc;4BACd,SAAS;4BACT,UAAU;4BACV,WAAW;yBACZ,CAAC;AACH,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;AAMT,EAAA,CAAA;AACF,iBAAA;8BAEU,OAAO,EAAA,CAAA;sBAAf;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,WAAW,EAAA,CAAA;sBAAnB;;;ACtDH;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,14 @@
1
+ import { VariantType, AppearanceType } from '@egose/shadcn-theme-ng/alert';
2
+ import * as i0 from '@angular/core';
3
+
4
+ declare class EgBasicAlert {
5
+ variant: VariantType;
6
+ appearance: AppearanceType;
7
+ title: string;
8
+ description: string;
9
+ getIconName(variant: VariantType): string;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<EgBasicAlert, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<EgBasicAlert, "eg-basic-alert", never, { "variant": { "alias": "variant"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, {}, never, never, true, never>;
12
+ }
13
+
14
+ export { EgBasicAlert };
@@ -3,9 +3,9 @@ import { signal, computed, Input, Component, NgModule } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
4
  import * as i1 from '@spartan-ng/brain/button';
5
5
  import { BrnButton } from '@spartan-ng/brain/button';
6
- import { EgSpinner } from '@egose/shadcn-theme-ng/spinner';
6
+ import { HlmSpinner } from '@egose/shadcn-theme-ng/spinner';
7
7
  import { cva } from 'class-variance-authority';
8
- import { cn } from '@egose/shadcn-theme-ng/utils';
8
+ import { hlm } from '@egose/shadcn-theme-ng/utils';
9
9
 
10
10
  const buttonVariants = cva([
11
11
  'tw:cursor-pointer',
@@ -48,12 +48,12 @@ const buttonVariants = cva([
48
48
  },
49
49
  size: {
50
50
  default: 'tw:h-9 tw:px-4 tw:py-2',
51
- sm: 'tw:h-8 tw:rounded-sm tw:px-3 tw:text-xs',
52
- lg: 'tw:h-10 tw:rounded-sm tw:px-8',
51
+ sm: 'tw:h-8 tw:rounded-sm tw:px-3',
52
+ lg: 'tw:h-10 tw:rounded-sm tw:px-7 tw:text-base',
53
53
  icon: 'tw:h-9 tw:w-9',
54
54
  'compact-default': 'tw:h-8 tw:px-2 tw:py-1',
55
55
  'compact-sm': 'tw:h-7 tw:px-2 tw:py-1',
56
- 'compact-lg': 'tw:h-9 tw:px-2 tw:py-1',
56
+ 'compact-lg': 'tw:h-9 tw:px-2 tw:py-1 tw:text-base',
57
57
  'compact-icon': 'tw:h-8 tw:w-8',
58
58
  },
59
59
  appearance: {
@@ -73,7 +73,7 @@ const buttonVariants = cva([
73
73
  loading: false,
74
74
  },
75
75
  });
76
- class EgButton {
76
+ class HlmButton {
77
77
  /** Props */
78
78
  variant = 'primary';
79
79
  size = 'default';
@@ -94,7 +94,7 @@ class EgButton {
94
94
  if (this.appearance === 'outline-filled') {
95
95
  outlineClasses.push(this.getOutlineFilledClasses(this.variant));
96
96
  }
97
- return cn(buttonVariants({
97
+ return hlm(buttonVariants({
98
98
  variant: this.variant,
99
99
  size: this.size,
100
100
  appearance: this.appearance,
@@ -107,7 +107,7 @@ class EgButton {
107
107
  const base = this.appearance === 'outline' || this.appearance === 'outline-filled'
108
108
  ? this.getOutlineSpinnerClasses(this.variant)
109
109
  : this.getSpinnerClasses(this.variant);
110
- return cn(base, this.spinnerUserClass);
110
+ return hlm(base, this.spinnerUserClass);
111
111
  }, ...(ngDevMode ? [{ debugName: "spinnerClass" }] : []));
112
112
  setClass(classes) {
113
113
  this._additionalClasses.set(classes);
@@ -185,8 +185,8 @@ class EgButton {
185
185
  };
186
186
  return colors[variant];
187
187
  }
188
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: EgButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
189
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: EgButton, isStandalone: true, selector: "button[egButton], a[egButton]", inputs: { variant: "variant", size: "size", appearance: "appearance", loading: "loading", icon: "icon", iconPosition: "iconPosition", userClass: "userClass", spinnerUserClass: "spinnerUserClass", disabled: "disabled", type: "type" }, host: { properties: { "class": "_computedClass()", "attr.aria-busy": "loading || null", "attr.disabled": "(loading || disabled) ? true : null", "attr.type": "type" } }, hostDirectives: [{ directive: i1.BrnButton, inputs: ["disabled", "disabled"] }], ngImport: i0, template: `
188
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
189
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.0", type: HlmButton, isStandalone: true, selector: "button[hlmButton], a[hlmButton]", inputs: { variant: "variant", size: "size", appearance: "appearance", loading: "loading", icon: "icon", iconPosition: "iconPosition", userClass: "userClass", spinnerUserClass: "spinnerUserClass", disabled: "disabled", type: "type" }, host: { properties: { "class": "_computedClass()", "attr.aria-busy": "loading || null", "attr.disabled": "(loading || disabled) ? true : null", "attr.type": "type" } }, hostDirectives: [{ directive: i1.BrnButton, inputs: ["disabled", "disabled"] }], ngImport: i0, template: `
190
190
  <ng-template #projected>
191
191
  <ng-content></ng-content>
192
192
  </ng-template>
@@ -197,7 +197,7 @@ class EgButton {
197
197
  <ng-container *ngTemplateOutlet="projected" />
198
198
  </span>
199
199
  <span class="tw:absolute tw:inset-0 tw:flex tw:items-center tw:justify-center">
200
- <eg-spinner size="small" [spinnerClass]="spinnerClass()" />
200
+ <hlm-spinner size="small" [spinnerClass]="spinnerClass()" />
201
201
  </span>
202
202
  </div>
203
203
  } @else {
@@ -211,14 +211,14 @@ class EgButton {
211
211
  }
212
212
  </div>
213
213
  }
214
- `, isInline: true, dependencies: [{ kind: "component", type: EgSpinner, selector: "eg-spinner", inputs: ["size", "show", "class", "spinnerClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
214
+ `, isInline: true, dependencies: [{ kind: "component", type: HlmSpinner, selector: "hlm-spinner", inputs: ["size", "show", "class", "spinnerClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
215
215
  }
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: EgButton, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmButton, decorators: [{
217
217
  type: Component,
218
218
  args: [{
219
- selector: 'button[egButton], a[egButton]',
219
+ selector: 'button[hlmButton], a[hlmButton]',
220
220
  standalone: true,
221
- imports: [BrnButton, EgSpinner, NgTemplateOutlet],
221
+ imports: [BrnButton, HlmSpinner, NgTemplateOutlet],
222
222
  hostDirectives: [{ directive: BrnButton, inputs: ['disabled'] }],
223
223
  host: {
224
224
  '[class]': '_computedClass()',
@@ -237,7 +237,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
237
237
  <ng-container *ngTemplateOutlet="projected" />
238
238
  </span>
239
239
  <span class="tw:absolute tw:inset-0 tw:flex tw:items-center tw:justify-center">
240
- <eg-spinner size="small" [spinnerClass]="spinnerClass()" />
240
+ <hlm-spinner size="small" [spinnerClass]="spinnerClass()" />
241
241
  </span>
242
242
  </div>
243
243
  } @else {
@@ -278,17 +278,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
278
278
  /*
279
279
  * Public API Surface of button
280
280
  */
281
- const EgButtonImports = [EgButton];
282
- class EgButtonModule {
283
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: EgButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
284
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: EgButtonModule, imports: [EgButton], exports: [EgButton] });
285
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: EgButtonModule, imports: [EgButtonImports] });
281
+ const HlmButtonImports = [HlmButton];
282
+ class HlmButtonModule {
283
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
284
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: HlmButtonModule, imports: [HlmButton], exports: [HlmButton] });
285
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmButtonModule, imports: [HlmButtonImports] });
286
286
  }
287
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: EgButtonModule, decorators: [{
287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmButtonModule, decorators: [{
288
288
  type: NgModule,
289
289
  args: [{
290
- imports: [...EgButtonImports],
291
- exports: [...EgButtonImports],
290
+ imports: [...HlmButtonImports],
291
+ exports: [...HlmButtonImports],
292
292
  }]
293
293
  }] });
294
294
 
@@ -296,5 +296,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImpor
296
296
  * Generated bundle index. Do not edit.
297
297
  */
298
298
 
299
- export { EgButton, EgButtonImports, EgButtonModule, buttonVariants };
299
+ export { HlmButton, HlmButtonImports, HlmButtonModule, buttonVariants };
300
300
  //# sourceMappingURL=button.mjs.map