bakery-ui 0.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/README.md +63 -0
- package/bakery-ui-0.0.1.tgz +0 -0
- package/fesm2022/bakery-ui.mjs +51 -0
- package/fesm2022/bakery-ui.mjs.map +1 -0
- package/index.d.ts +17 -0
- package/package.json +49 -0
package/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# BakeryUi
|
2
|
+
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.0.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 bakery-ui
|
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
|
+
```bash
|
35
|
+
cd dist/bakery-ui
|
36
|
+
```
|
37
|
+
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
39
|
+
```bash
|
40
|
+
npm publish
|
41
|
+
```
|
42
|
+
|
43
|
+
## Running unit tests
|
44
|
+
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
46
|
+
|
47
|
+
```bash
|
48
|
+
ng test
|
49
|
+
```
|
50
|
+
|
51
|
+
## Running end-to-end tests
|
52
|
+
|
53
|
+
For end-to-end (e2e) testing, run:
|
54
|
+
|
55
|
+
```bash
|
56
|
+
ng e2e
|
57
|
+
```
|
58
|
+
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
60
|
+
|
61
|
+
## Additional Resources
|
62
|
+
|
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.
|
Binary file
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, Input } from '@angular/core';
|
3
|
+
|
4
|
+
class BakeryUi {
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BakeryUi, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
6
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BakeryUi, isStandalone: true, selector: "lib-bakery-ui", ngImport: i0, template: `
|
7
|
+
<p>
|
8
|
+
bakery-ui works!
|
9
|
+
</p>
|
10
|
+
`, isInline: true, styles: [""] });
|
11
|
+
}
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BakeryUi, decorators: [{
|
13
|
+
type: Component,
|
14
|
+
args: [{ selector: 'lib-bakery-ui', imports: [], template: `
|
15
|
+
<p>
|
16
|
+
bakery-ui works!
|
17
|
+
</p>
|
18
|
+
` }]
|
19
|
+
}] });
|
20
|
+
|
21
|
+
class Button {
|
22
|
+
label = 'Button';
|
23
|
+
variant = 'primary';
|
24
|
+
size = 'medium';
|
25
|
+
disabled = false;
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: Button, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: Button, isStandalone: true, selector: "lib-button", inputs: { label: "label", variant: "variant", size: "size", disabled: "disabled" }, ngImport: i0, template: "<button \n [class]=\"'btn btn-' + variant + ' btn-' + size\"\n [disabled]=\"disabled\">\n {{ label }}\n</button>\n", styles: [".btn{border-radius:8px;border:none;font-weight:600;cursor:pointer;transition:all .2s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-small{padding:6px 12px;font-size:14px}.btn-medium{padding:10px 20px;font-size:16px}.btn-large{padding:14px 28px;font-size:18px}.btn-primary{background:linear-gradient(135deg,#d4af37,#b8941f);color:#fff;box-shadow:0 2px 4px #d4af374d}.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#b8941f,#9d7e1a);transform:translateY(-1px);box-shadow:0 4px 8px #d4af3766}.btn-secondary{background:linear-gradient(135deg,#8b4513,#654321);color:#fff;box-shadow:0 2px 4px #8b45134d}.btn-secondary:hover:not(:disabled){background:linear-gradient(135deg,#654321,#4a2c17);transform:translateY(-1px);box-shadow:0 4px 8px #8b451366}.btn-danger{background:linear-gradient(135deg,#dc3545,#c82333);color:#fff;box-shadow:0 2px 4px #dc35454d}.btn-danger:hover:not(:disabled){background:linear-gradient(135deg,#c82333,#bd2130);transform:translateY(-1px);box-shadow:0 4px 8px #dc354566}\n"] });
|
28
|
+
}
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: Button, decorators: [{
|
30
|
+
type: Component,
|
31
|
+
args: [{ selector: 'lib-button', imports: [], template: "<button \n [class]=\"'btn btn-' + variant + ' btn-' + size\"\n [disabled]=\"disabled\">\n {{ label }}\n</button>\n", styles: [".btn{border-radius:8px;border:none;font-weight:600;cursor:pointer;transition:all .2s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-small{padding:6px 12px;font-size:14px}.btn-medium{padding:10px 20px;font-size:16px}.btn-large{padding:14px 28px;font-size:18px}.btn-primary{background:linear-gradient(135deg,#d4af37,#b8941f);color:#fff;box-shadow:0 2px 4px #d4af374d}.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#b8941f,#9d7e1a);transform:translateY(-1px);box-shadow:0 4px 8px #d4af3766}.btn-secondary{background:linear-gradient(135deg,#8b4513,#654321);color:#fff;box-shadow:0 2px 4px #8b45134d}.btn-secondary:hover:not(:disabled){background:linear-gradient(135deg,#654321,#4a2c17);transform:translateY(-1px);box-shadow:0 4px 8px #8b451366}.btn-danger{background:linear-gradient(135deg,#dc3545,#c82333);color:#fff;box-shadow:0 2px 4px #dc35454d}.btn-danger:hover:not(:disabled){background:linear-gradient(135deg,#c82333,#bd2130);transform:translateY(-1px);box-shadow:0 4px 8px #dc354566}\n"] }]
|
32
|
+
}], propDecorators: { label: [{
|
33
|
+
type: Input
|
34
|
+
}], variant: [{
|
35
|
+
type: Input
|
36
|
+
}], size: [{
|
37
|
+
type: Input
|
38
|
+
}], disabled: [{
|
39
|
+
type: Input
|
40
|
+
}] } });
|
41
|
+
|
42
|
+
/*
|
43
|
+
* Public API Surface of bakery-ui
|
44
|
+
*/
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Generated bundle index. Do not edit.
|
48
|
+
*/
|
49
|
+
|
50
|
+
export { BakeryUi, Button };
|
51
|
+
//# sourceMappingURL=bakery-ui.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"bakery-ui.mjs","sources":["../../../projects/bakery-ui/src/lib/bakery-ui.ts","../../../projects/bakery-ui/src/lib/button/button.ts","../../../projects/bakery-ui/src/lib/button/button.html","../../../projects/bakery-ui/src/public-api.ts","../../../projects/bakery-ui/src/bakery-ui.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-bakery-ui',\n imports: [],\n template: `\n <p>\n bakery-ui works!\n </p>\n `,\n styles: ``\n})\nexport class BakeryUi {\n\n}\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'lib-button',\n imports: [],\n templateUrl: './button.html',\n styleUrl: './button.css'\n})\nexport class Button {\n @Input() label: string = 'Button';\n @Input() variant: 'primary' | 'secondary' | 'danger' = 'primary';\n @Input() size: 'small' | 'medium' | 'large' = 'medium';\n @Input() disabled: boolean = false;\n}\n","<button \n [class]=\"'btn btn-' + variant + ' btn-' + size\"\n [disabled]=\"disabled\">\n {{ label }}\n</button>\n","/*\n * Public API Surface of bakery-ui\n */\n\nexport * from './lib/bakery-ui';\nexport * from './lib/button/button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAYa,QAAQ,CAAA;uGAAR,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAR,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAQ,EAPT,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAGU,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAVpB,SAAS;+BACE,eAAe,EAAA,OAAA,EAChB,EAAE,EACD,QAAA,EAAA;;;;AAIT,EAAA,CAAA,EAAA;;;MCDU,MAAM,CAAA;IACR,KAAK,GAAW,QAAQ;IACxB,OAAO,GAAuC,SAAS;IACvD,IAAI,GAAiC,QAAQ;IAC7C,QAAQ,GAAY,KAAK;uGAJvB,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAN,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAM,0JCRnB,uHAKA,EAAA,MAAA,EAAA,CAAA,4jCAAA,CAAA,EAAA,CAAA;;2FDGa,MAAM,EAAA,UAAA,EAAA,CAAA;kBANlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,EAAE,EAAA,QAAA,EAAA,uHAAA,EAAA,MAAA,EAAA,CAAA,4jCAAA,CAAA,EAAA;8BAKF,KAAK,EAAA,CAAA;sBAAb;gBACQ,OAAO,EAAA,CAAA;sBAAf;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;;;AEZH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
|
3
|
+
declare class BakeryUi {
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BakeryUi, never>;
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BakeryUi, "lib-bakery-ui", never, {}, {}, never, never, true, never>;
|
6
|
+
}
|
7
|
+
|
8
|
+
declare class Button {
|
9
|
+
label: string;
|
10
|
+
variant: 'primary' | 'secondary' | 'danger';
|
11
|
+
size: 'small' | 'medium' | 'large';
|
12
|
+
disabled: boolean;
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "lib-button", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
15
|
+
}
|
16
|
+
|
17
|
+
export { BakeryUi, Button };
|
package/package.json
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"name": "bakery-ui",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "🥖 A delicious Angular UI component library with bakery-inspired theming and Storybook integration",
|
5
|
+
"keywords": [
|
6
|
+
"angular",
|
7
|
+
"ui",
|
8
|
+
"components",
|
9
|
+
"library",
|
10
|
+
"bakery",
|
11
|
+
"theme",
|
12
|
+
"storybook",
|
13
|
+
"typescript",
|
14
|
+
"responsive"
|
15
|
+
],
|
16
|
+
"author": "Vivek Raj",
|
17
|
+
"license": "MIT",
|
18
|
+
"homepage": "https://github.com/vivekraj-kr/bakery-ui#readme",
|
19
|
+
"repository": {
|
20
|
+
"type": "git",
|
21
|
+
"url": "git+https://github.com/vivekraj-kr/bakery-ui.git"
|
22
|
+
},
|
23
|
+
"bugs": {
|
24
|
+
"url": "https://github.com/vivekraj-kr/bakery-ui/issues"
|
25
|
+
},
|
26
|
+
"peerDependencies": {
|
27
|
+
"@angular/common": "^20.0.0",
|
28
|
+
"@angular/core": "^20.0.0"
|
29
|
+
},
|
30
|
+
"dependencies": {
|
31
|
+
"tslib": "^2.3.0"
|
32
|
+
},
|
33
|
+
"sideEffects": false,
|
34
|
+
"engines": {
|
35
|
+
"node": ">=18.0.0",
|
36
|
+
"npm": ">=8.0.0"
|
37
|
+
},
|
38
|
+
"module": "fesm2022/bakery-ui.mjs",
|
39
|
+
"typings": "index.d.ts",
|
40
|
+
"exports": {
|
41
|
+
"./package.json": {
|
42
|
+
"default": "./package.json"
|
43
|
+
},
|
44
|
+
".": {
|
45
|
+
"types": "./index.d.ts",
|
46
|
+
"default": "./fesm2022/bakery-ui.mjs"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|