@hmscodes/honey-core 1.0.0 → 1.0.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmscodes/honey-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "ng serve",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "honey-core",
3
- "version": "0.0.1",
3
+ "version": "1.0.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0"
@@ -1,18 +1,18 @@
1
1
  import { ComponentFixture, TestBed } from '@angular/core/testing';
2
2
 
3
- import { ButtonComponent } from './button.component';
3
+ import { HcButtonComponent } from './button.component';
4
4
 
5
- describe('ButtonComponent', () => {
6
- let component: ButtonComponent;
7
- let fixture: ComponentFixture<ButtonComponent>;
5
+ describe('HcButtonComponent', () => {
6
+ let component: HcButtonComponent;
7
+ let fixture: ComponentFixture<HcButtonComponent>;
8
8
 
9
9
  beforeEach(async () => {
10
10
  await TestBed.configureTestingModule({
11
- imports: [ButtonComponent]
11
+ imports: [HcButtonComponent]
12
12
  })
13
13
  .compileComponents();
14
14
 
15
- fixture = TestBed.createComponent(ButtonComponent);
15
+ fixture = TestBed.createComponent(HcButtonComponent);
16
16
  component = fixture.componentInstance;
17
17
  fixture.detectChanges();
18
18
  });
@@ -7,7 +7,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core';
7
7
  imports: [],
8
8
  standalone: true,
9
9
  })
10
- export class ButtonComponent {
10
+ export class HcButtonComponent {
11
11
  /** Is this the principal call to action on the page? */
12
12
  @Input()
13
13
  variant: 'primary' | 'secondary' = 'primary';
@@ -1,13 +1,13 @@
1
1
  import { argsToTemplate, type Meta, type StoryObj } from '@storybook/angular';
2
2
  import { fn } from '@storybook/test';
3
- import { ButtonComponent } from '../lib/components/button/button.component';
3
+ import { HcButtonComponent } from '../lib/components/button/button.component';
4
4
 
5
- type ButtonInputsAndCustomArgs = ButtonComponent & { text: string };
5
+ type ButtonInputsAndCustomArgs = HcButtonComponent & { text: string };
6
6
 
7
7
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
8
8
  const meta: Meta<ButtonInputsAndCustomArgs> = {
9
9
  title: 'Example/Button',
10
- component: ButtonComponent,
10
+ component: HcButtonComponent,
11
11
  tags: ['autodocs'],
12
12
  args: {
13
13
  text: 'Button',
@@ -23,7 +23,7 @@ const meta: Meta<ButtonInputsAndCustomArgs> = {
23
23
  };
24
24
 
25
25
  export default meta;
26
- type Story = StoryObj<ButtonComponent>;
26
+ type Story = StoryObj<HcButtonComponent>;
27
27
 
28
28
  // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
29
29
  export const Primary: Story = {
@@ -2,12 +2,12 @@ import { Component, Input, Output, EventEmitter } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
3
 
4
4
  import type { User } from './user';
5
- import { ButtonComponent } from '../lib/components/button/button.component';
5
+ import { HcButtonComponent } from '../lib/components/button/button.component';
6
6
 
7
7
  @Component({
8
8
  selector: 'storybook-header',
9
9
  standalone: true,
10
- imports: [CommonModule, ButtonComponent],
10
+ imports: [CommonModule, HcButtonComponent],
11
11
  template: `<header>
12
12
  <div class="storybook-header">
13
13
  <div>
@@ -36,8 +36,7 @@ import { ButtonComponent } from '../lib/components/button/button.component';
36
36
  *ngIf="user"
37
37
  size="small"
38
38
  (onClick)="onLogout.emit($event)"
39
- label="Log out"
40
- ></hc-button>
39
+ >Log out</hc-button>
41
40
  </div>
42
41
  <div *ngIf="!user">
43
42
  <hc-button