bakery-ui 0.0.1 → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Vivekraj K R
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,63 +1,154 @@
1
- # BakeryUi
1
+ # 🥖 Bakery UI
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.0.0.
3
+ [![npm version](https://badge.fury.io/js/bakery-ui.svg)](https://badge.fury.io/js/bakery-ui)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![Angular](https://img.shields.io/badge/Angular-20.0.0-red.svg)](https://angular.io/)
4
6
 
5
- ## Code scaffolding
7
+ A delicious Angular UI component library with bakery-inspired theming and Storybook integration.
6
8
 
7
- Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
9
+ ## Features
8
10
 
9
- ```bash
10
- ng generate component component-name
11
- ```
11
+ - 🎨 **Bakery-inspired theming** with warm, golden colors
12
+ - 🧩 **Modular components** built with Angular 20
13
+ - 📱 **Responsive design** that works on all devices
14
+ - 🔧 **TypeScript support** with full type definitions
15
+ - 📖 **Storybook integration** for component development
16
+ - 🎯 **Tree-shakable** for optimal bundle size
17
+ - ♿ **Accessible** components following WCAG guidelines
12
18
 
13
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
19
+ ## 📦 Installation
14
20
 
15
21
  ```bash
16
- ng generate --help
22
+ npm install bakery-ui
17
23
  ```
18
24
 
19
- ## Building
25
+ ## 🚀 Quick Start
26
+
27
+ ### 1. Import the component in your Angular module or standalone component:
28
+
29
+ ```typescript
30
+ import { Component } from '@angular/core';
31
+ import { Button } from 'bakery-ui';
32
+
33
+ @Component({
34
+ selector: 'app-example',
35
+ imports: [Button],
36
+ template: `
37
+ <lib-button
38
+ label="Order Now"
39
+ variant="primary"
40
+ size="medium">
41
+ </lib-button>
42
+ `
43
+ })
44
+ export class ExampleComponent {}
45
+ ```
20
46
 
21
- To build the library, run:
47
+ ### 2. Use in your template:
22
48
 
23
- ```bash
24
- ng build bakery-ui
49
+ ```html
50
+ <!-- Primary button -->
51
+ <lib-button label="Order Now" variant="primary" size="medium"></lib-button>
52
+
53
+ <!-- Secondary button -->
54
+ <lib-button label="Learn More" variant="secondary" size="large"></lib-button>
55
+
56
+ <!-- Danger button -->
57
+ <lib-button label="Delete" variant="danger" size="small" [disabled]="false"></lib-button>
25
58
  ```
26
59
 
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
60
+ ## 🧩 Available Components
28
61
 
29
- ### Publishing the Library
62
+ ### Button Component
30
63
 
31
- Once the project is built, you can publish your library by following these steps:
64
+ A versatile button component with bakery-inspired styling.
32
65
 
33
- 1. Navigate to the `dist` directory:
34
- ```bash
35
- cd dist/bakery-ui
36
- ```
66
+ **Properties:**
67
+ - `label: string` - Button text (default: 'Button')
68
+ - `variant: 'primary' | 'secondary' | 'danger'` - Button style (default: 'primary')
69
+ - `size: 'small' | 'medium' | 'large'` - Button size (default: 'medium')
70
+ - `disabled: boolean` - Disabled state (default: false)
37
71
 
38
- 2. Run the `npm publish` command to publish your library to the npm registry:
39
- ```bash
40
- npm publish
41
- ```
72
+ **Example:**
73
+ ```html
74
+ <lib-button
75
+ label="Add to Cart"
76
+ variant="primary"
77
+ size="large"
78
+ [disabled]="isLoading">
79
+ </lib-button>
80
+ ```
42
81
 
43
- ## Running unit tests
82
+ ## 🎨 Theming
44
83
 
45
- To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
84
+ Bakery UI comes with a built-in bakery-inspired theme featuring:
85
+
86
+ - **Primary**: Golden colors reminiscent of fresh bread
87
+ - **Secondary**: Rich brown tones like chocolate
88
+ - **Danger**: Warm red for important actions
89
+ - **Hover effects**: Subtle animations and depth
90
+ - **Typography**: Clean, readable fonts
91
+
92
+ ## 📖 Storybook
93
+
94
+ View all components in our interactive Storybook:
46
95
 
47
96
  ```bash
48
- ng test
97
+ # Clone the repository
98
+ git clone https://github.com/vivekraj-kr/bakery-ui.git
99
+ cd bakery-ui
100
+
101
+ # Install dependencies
102
+ npm install
103
+
104
+ # Run Storybook
105
+ ng run bakery-ui:storybook
49
106
  ```
50
107
 
51
- ## Running end-to-end tests
108
+ ## 🔧 Development
52
109
 
53
- For end-to-end (e2e) testing, run:
110
+ ### Building the Library
54
111
 
55
112
  ```bash
56
- ng e2e
113
+ ng build bakery-ui
57
114
  ```
58
115
 
59
- Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
116
+ ### Running Tests
117
+
118
+ ```bash
119
+ ng test
120
+ ```
121
+
122
+ ### Contributing
123
+
124
+ 1. Fork the repository
125
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
126
+ 3. Commit your changes (`git commit -m 'Add some amazing feature'`)
127
+ 4. Push to the branch (`git push origin feature/amazing-feature`)
128
+ 5. Open a Pull Request
129
+
130
+ ## 📋 Requirements
131
+
132
+ - Angular 20.0.0 or higher
133
+ - Node.js 18.0.0 or higher
134
+ - npm 8.0.0 or higher
135
+
136
+ ## 📄 License
137
+
138
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
139
+
140
+ ## 🤝 Support
141
+
142
+ - 🐛 [Report bugs](https://github.com/vivekraj-kr/bakery-ui/issues)
143
+ - 💡 [Request features](https://github.com/vivekraj-kr/bakery-ui/issues)
144
+ - 📧 [Contact us](mailto:vivekrajkr.mail@gmail.com)
145
+
146
+ ## 🏆 Acknowledgments
147
+
148
+ - Built with [Angular CLI](https://angular.io/cli)
149
+ - Powered by [Storybook](https://storybook.js.org/)
150
+ - Inspired by the warmth and comfort of bakeries everywhere
60
151
 
61
- ## Additional Resources
152
+ ---
62
153
 
63
- 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.
154
+ Made with ❤️ and a lot of by [Vivek Raj](https://github.com/vivekraj-kr)