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 +21 -0
- package/README.md +124 -33
- package/fesm2022/bakery-ui.mjs +1092 -13
- package/fesm2022/bakery-ui.mjs.map +1 -1
- package/index.d.ts +5 -17
- package/lib/bakery-ui.d.ts +5 -0
- package/lib/button/baguette-button.d.ts +22 -0
- package/lib/display/cupcake-card.d.ts +34 -0
- package/lib/feedback/toast-notification.d.ts +30 -0
- package/lib/inputs/bagel-input.d.ts +53 -0
- package/package.json +12 -5
- package/public-api.d.ts +5 -0
- package/bakery-ui-0.0.1.tgz +0 -0
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
|
-
#
|
1
|
+
# 🥖 Bakery UI
|
2
2
|
|
3
|
-
|
3
|
+
[](https://badge.fury.io/js/bakery-ui)
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
5
|
+
[](https://angular.io/)
|
4
6
|
|
5
|
-
|
7
|
+
A delicious Angular UI component library with bakery-inspired theming and Storybook integration.
|
6
8
|
|
7
|
-
|
9
|
+
## ✨ Features
|
8
10
|
|
9
|
-
|
10
|
-
|
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
|
-
|
19
|
+
## 📦 Installation
|
14
20
|
|
15
21
|
```bash
|
16
|
-
|
22
|
+
npm install bakery-ui
|
17
23
|
```
|
18
24
|
|
19
|
-
##
|
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
|
-
|
47
|
+
### 2. Use in your template:
|
22
48
|
|
23
|
-
```
|
24
|
-
|
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
|
-
|
60
|
+
## 🧩 Available Components
|
28
61
|
|
29
|
-
###
|
62
|
+
### Button Component
|
30
63
|
|
31
|
-
|
64
|
+
A versatile button component with bakery-inspired styling.
|
32
65
|
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
39
|
-
|
40
|
-
|
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
|
-
##
|
82
|
+
## 🎨 Theming
|
44
83
|
|
45
|
-
|
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
|
-
|
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
|
-
##
|
108
|
+
## 🔧 Development
|
52
109
|
|
53
|
-
|
110
|
+
### Building the Library
|
54
111
|
|
55
112
|
```bash
|
56
|
-
ng
|
113
|
+
ng build bakery-ui
|
57
114
|
```
|
58
115
|
|
59
|
-
|
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
|
-
|
152
|
+
---
|
62
153
|
|
63
|
-
|
154
|
+
Made with ❤️ and a lot of ☕ by [Vivek Raj](https://github.com/vivekraj-kr)
|