@sarasanalytics-com/design-system 0.0.3

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 (136) hide show
  1. package/.editorconfig +16 -0
  2. package/.eslintrc.json +22 -0
  3. package/.storybook/main.ts +21 -0
  4. package/.storybook/manager.ts +17 -0
  5. package/.storybook/preview-head.html +5 -0
  6. package/.storybook/preview.ts +65 -0
  7. package/.storybook/tsconfig.doc.json +10 -0
  8. package/.storybook/tsconfig.json +11 -0
  9. package/.storybook/typings.d.ts +4 -0
  10. package/.vscode/extensions.json +7 -0
  11. package/.vscode/launch.json +20 -0
  12. package/.vscode/settings.json +13 -0
  13. package/.vscode/tasks.json +42 -0
  14. package/README.md +27 -0
  15. package/angular.json +189 -0
  16. package/build-storybook.log +39 -0
  17. package/documentation.json +0 -0
  18. package/package.json +74 -0
  19. package/projects/component-library/README.md +24 -0
  20. package/projects/component-library/ng-package.json +8 -0
  21. package/projects/component-library/package.json +12 -0
  22. package/projects/component-library/src/interfaces/avatar-interface.ts +6 -0
  23. package/projects/component-library/src/interfaces/button-interface.ts +12 -0
  24. package/projects/component-library/src/interfaces/chip-interface.ts +11 -0
  25. package/projects/component-library/src/interfaces/grid-interface.ts +24 -0
  26. package/projects/component-library/src/interfaces/select-interface.ts +19 -0
  27. package/projects/component-library/src/interfaces/tab-interface.ts +6 -0
  28. package/projects/component-library/src/lib/avatar/avatar.component.css +48 -0
  29. package/projects/component-library/src/lib/avatar/avatar.component.html +5 -0
  30. package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +23 -0
  31. package/projects/component-library/src/lib/avatar/avatar.component.ts +50 -0
  32. package/projects/component-library/src/lib/button/button.component.css +145 -0
  33. package/projects/component-library/src/lib/button/button.component.html +11 -0
  34. package/projects/component-library/src/lib/button/button.component.spec.ts +23 -0
  35. package/projects/component-library/src/lib/button/button.component.ts +68 -0
  36. package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +67 -0
  37. package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +20 -0
  38. package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +23 -0
  39. package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +196 -0
  40. package/projects/component-library/src/lib/chips/chips.component.css +129 -0
  41. package/projects/component-library/src/lib/chips/chips.component.html +17 -0
  42. package/projects/component-library/src/lib/chips/chips.component.spec.ts +23 -0
  43. package/projects/component-library/src/lib/chips/chips.component.ts +55 -0
  44. package/projects/component-library/src/lib/component-library.component.spec.ts +23 -0
  45. package/projects/component-library/src/lib/component-library.component.ts +16 -0
  46. package/projects/component-library/src/lib/component-library.service.spec.ts +16 -0
  47. package/projects/component-library/src/lib/component-library.service.ts +9 -0
  48. package/projects/component-library/src/lib/datepicker/datepicker.component.css +33 -0
  49. package/projects/component-library/src/lib/datepicker/datepicker.component.html +11 -0
  50. package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +23 -0
  51. package/projects/component-library/src/lib/datepicker/datepicker.component.ts +37 -0
  52. package/projects/component-library/src/lib/form-select/form-select.component.css +156 -0
  53. package/projects/component-library/src/lib/form-select/form-select.component.html +38 -0
  54. package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +23 -0
  55. package/projects/component-library/src/lib/form-select/form-select.component.ts +54 -0
  56. package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +78 -0
  57. package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +31 -0
  58. package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +23 -0
  59. package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +89 -0
  60. package/projects/component-library/src/lib/header/header.component.css +62 -0
  61. package/projects/component-library/src/lib/header/header.component.html +23 -0
  62. package/projects/component-library/src/lib/header/header.component.spec.ts +23 -0
  63. package/projects/component-library/src/lib/header/header.component.ts +28 -0
  64. package/projects/component-library/src/lib/stepper/stepper.component.css +96 -0
  65. package/projects/component-library/src/lib/stepper/stepper.component.html +14 -0
  66. package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +23 -0
  67. package/projects/component-library/src/lib/stepper/stepper.component.ts +61 -0
  68. package/projects/component-library/src/lib/tabs/tabs.component.css +100 -0
  69. package/projects/component-library/src/lib/tabs/tabs.component.html +16 -0
  70. package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +23 -0
  71. package/projects/component-library/src/lib/tabs/tabs.component.ts +37 -0
  72. package/projects/component-library/src/lib/toast/toast.component.css +108 -0
  73. package/projects/component-library/src/lib/toast/toast.component.html +25 -0
  74. package/projects/component-library/src/lib/toast/toast.component.spec.ts +23 -0
  75. package/projects/component-library/src/lib/toast/toast.component.ts +37 -0
  76. package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +139 -0
  77. package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +31 -0
  78. package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +23 -0
  79. package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +37 -0
  80. package/projects/component-library/src/public-api.ts +25 -0
  81. package/projects/component-library/tsconfig.lib.json +14 -0
  82. package/projects/component-library/tsconfig.lib.prod.json +10 -0
  83. package/projects/component-library/tsconfig.spec.json +14 -0
  84. package/src/Saras-logo.svg +15 -0
  85. package/src/app/app.component.css +13 -0
  86. package/src/app/app.component.html +77 -0
  87. package/src/app/app.component.spec.ts +29 -0
  88. package/src/app/app.component.ts +505 -0
  89. package/src/app/app.config.ts +27 -0
  90. package/src/app/app.routes.ts +3 -0
  91. package/src/app/data.ts +52 -0
  92. package/src/app/kitchen-sink/kitchen-sink.component.css +29 -0
  93. package/src/app/kitchen-sink/kitchen-sink.component.html +7 -0
  94. package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +23 -0
  95. package/src/app/kitchen-sink/kitchen-sink.component.ts +92 -0
  96. package/src/assets/.gitkeep +0 -0
  97. package/src/assets/Chevron.svg +5 -0
  98. package/src/assets/Frame.svg +5 -0
  99. package/src/assets/Grid.svg +5 -0
  100. package/src/assets/Location.svg +5 -0
  101. package/src/assets/Mail.svg +5 -0
  102. package/src/assets/Person.svg +5 -0
  103. package/src/assets/Scan.svg +5 -0
  104. package/src/assets/Sources.svg +5 -0
  105. package/src/assets/arrow.svg +5 -0
  106. package/src/assets/avatar.svg +12 -0
  107. package/src/assets/checkmark.svg +5 -0
  108. package/src/assets/crossmark.svg +5 -0
  109. package/src/assets/dot.svg +5 -0
  110. package/src/assets/negativemark.svg +5 -0
  111. package/src/assets/pointer-polygon.svg +3 -0
  112. package/src/assets/tick-icon.svg +5 -0
  113. package/src/assets/tick.svg +8 -0
  114. package/src/assets/warningmark.svg +5 -0
  115. package/src/custom-theme.scss +37 -0
  116. package/src/favicon.ico +0 -0
  117. package/src/index.html +23 -0
  118. package/src/main.ts +6 -0
  119. package/src/stories/GettingStarted.mdx +233 -0
  120. package/src/stories/KitchenSink.stories.ts +86 -0
  121. package/src/stories/avatar.stories.ts +45 -0
  122. package/src/stories/chips.stories.ts +61 -0
  123. package/src/stories/custom-button.stories.ts +74 -0
  124. package/src/stories/datepicker.stories.ts +78 -0
  125. package/src/stories/gridCell.stories.ts +234 -0
  126. package/src/stories/header.stories.ts +61 -0
  127. package/src/stories/selectInput.stories.ts +158 -0
  128. package/src/stories/stepper.stories.ts +92 -0
  129. package/src/stories/tabs.stories.ts +97 -0
  130. package/src/stories/toast.stories.ts +54 -0
  131. package/src/stories/tool-tip.stories.ts +45 -0
  132. package/src/styles.css +204 -0
  133. package/src/svg.d.ts +1 -0
  134. package/tsconfig.app.json +14 -0
  135. package/tsconfig.json +42 -0
  136. package/tsconfig.spec.json +14 -0
package/.editorconfig ADDED
@@ -0,0 +1,16 @@
1
+ # Editor configuration, see https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.ts]
12
+ quote_type = single
13
+
14
+ [*.md]
15
+ max_line_length = off
16
+ trim_trailing_whitespace = false
package/.eslintrc.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/recommended"
9
+ ],
10
+ "parser": "@typescript-eslint/parser",
11
+ "parserOptions": {
12
+ "ecmaVersion": "latest",
13
+ "sourceType": "module"
14
+ },
15
+ "plugins": [
16
+ "@typescript-eslint"
17
+ ],
18
+ "rules": {
19
+ "@angular-eslint/template/accessibility-valid-aria": ["error"],
20
+ "@angular-eslint/template/accessibility-role-has-required-aria": ["error"]
21
+ }
22
+ }
@@ -0,0 +1,21 @@
1
+ import type { StorybookConfig } from "@storybook/angular";
2
+
3
+ const config: StorybookConfig = {
4
+ stories: ['../src/stories/*.stories.ts', '../src/stories/*.mdx'],
5
+ staticDirs: ['../src'],
6
+ addons: [
7
+ "@storybook/addon-links",
8
+ "@storybook/addon-essentials",
9
+ "@storybook/addon-interactions",
10
+ '@storybook/addon-docs',
11
+ '@storybook/addon-actions'
12
+ ],
13
+ framework: {
14
+ name: "@storybook/angular",
15
+ options: {},
16
+ },
17
+ docs: {
18
+ autodocs: "tag",
19
+ },
20
+ };
21
+ export default config;
@@ -0,0 +1,17 @@
1
+ // .storybook/manager.js
2
+ import { addons } from '@storybook/manager-api';
3
+ import { create } from '@storybook/theming/create';
4
+
5
+ addons.setConfig({
6
+ theme: create({
7
+ base: 'light', // or 'dark'
8
+ brandTitle: 'Saras',
9
+ brandUrl: 'https://sarasanalytics.com',
10
+ brandImage: '../Saras-logo.svg', // Path to your logo image
11
+ colorSecondary: '#1B77E4',
12
+
13
+ appBg: '#ffffff',
14
+ appContentBg: '#ffffff',
15
+ appPreviewBg: '#ffffff',
16
+ }),
17
+ });
@@ -0,0 +1,5 @@
1
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2
+ <link
3
+ href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
4
+ rel="stylesheet">
5
+ <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@@ -0,0 +1,65 @@
1
+ import type { Preview } from "@storybook/angular";
2
+ import { componentWrapperDecorator } from "@storybook/angular";
3
+
4
+ const preview: Preview = {
5
+ parameters: {
6
+ options: {
7
+ storySort: {
8
+ order: [
9
+ 'Getting started',
10
+ '*',
11
+ 'Kitchen Sink'
12
+ ]
13
+ }
14
+ },
15
+ },
16
+ globalTypes: {
17
+ theme: {
18
+ description: 'Global theme for components',
19
+ defaultValue: 'saras-theme',
20
+ toolbar: {
21
+ title: 'Theme',
22
+ icon: 'circlehollow',
23
+ items: ['saras-theme', 'insights-theme'],
24
+ dynamicTitle: true,
25
+ },
26
+ },
27
+ },
28
+ decorators: [
29
+ componentWrapperDecorator(
30
+ (story) => {
31
+ return `
32
+ ${story}
33
+ `
34
+ },
35
+ ({ globals }) => {
36
+ document.body.classList.remove("saras-theme"); // remove if this theme already exists in classlist
37
+ document.body.classList.remove("insights-theme"); // Since we don't know which one already exists, we try removing both.
38
+ document.body.classList.add(globals['theme']); // append the most recent class selection here.
39
+ return { myTheme: globals['theme'] };
40
+ },
41
+ ),
42
+ ],
43
+ };
44
+
45
+ export default preview;
46
+
47
+
48
+ // storySort: {
49
+ // order: [
50
+ // 'Avatar',
51
+ // 'Button',
52
+ // 'Chips',
53
+ // 'Datepicker',
54
+ // 'GridCell',
55
+ // 'Header',
56
+ // 'Select Input',
57
+ // 'Stepper',
58
+ // 'Tabs',
59
+ // 'Toast',
60
+ // 'ToolTip',
61
+ // 'Avatar Sink',
62
+ // 'Button Sink',
63
+ // 'Chip Sink'
64
+ // ]
65
+ // }
@@ -0,0 +1,10 @@
1
+ // This tsconfig is used by Compodoc to generate the documentation for the project.
2
+ // If Compodoc is not used, this file can be deleted.
3
+ {
4
+ "extends": "./tsconfig.json",
5
+ // Exclude all files that are not needed for documentation generation.
6
+ "exclude": ["../src/test.ts", "../src/**/*.spec.ts", "../src/**/*.stories.ts"],
7
+ // Please make sure to include all files from which Compodoc should generate documentation.
8
+ "include": ["../src/**/*"],
9
+ "files": ["./typings.d.ts"]
10
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../tsconfig.app.json",
3
+ "compilerOptions": {
4
+ "types": ["node"],
5
+ "allowSyntheticDefaultImports": true,
6
+ "resolveJsonModule": true
7
+ },
8
+ "exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
9
+ "include": ["../src/**/*.stories.*", "./preview.ts"],
10
+ "files": ["./typings.d.ts"]
11
+ }
@@ -0,0 +1,4 @@
1
+ declare module '*.md' {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
+ "recommendations": [
4
+ "angular.ng-template",
5
+ "hookyqr.beautify"
6
+ ]
7
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3
+ "version": "0.2.0",
4
+ "configurations": [
5
+ {
6
+ "name": "ng serve",
7
+ "type": "chrome",
8
+ "request": "launch",
9
+ "preLaunchTask": "npm: start",
10
+ "url": "http://localhost:4200/"
11
+ },
12
+ {
13
+ "name": "ng test",
14
+ "type": "chrome",
15
+ "request": "launch",
16
+ "preLaunchTask": "npm: test",
17
+ "url": "http://localhost:9876/debug.html"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "beautify.onSave": true,
3
+
4
+ "editor.formatOnSave": true,
5
+
6
+ "beautify.JSfiles": [
7
+ "js",
8
+ "json",
9
+ "jsbeautifyrc",
10
+ "jshintrc",
11
+ "ts",
12
+ ]
13
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3
+ "version": "2.0.0",
4
+ "tasks": [
5
+ {
6
+ "type": "npm",
7
+ "script": "start",
8
+ "isBackground": true,
9
+ "problemMatcher": {
10
+ "owner": "typescript",
11
+ "pattern": "$tsc",
12
+ "background": {
13
+ "activeOnStart": true,
14
+ "beginsPattern": {
15
+ "regexp": "(.*?)"
16
+ },
17
+ "endsPattern": {
18
+ "regexp": "bundle generation complete"
19
+ }
20
+ }
21
+ }
22
+ },
23
+ {
24
+ "type": "npm",
25
+ "script": "test",
26
+ "isBackground": true,
27
+ "problemMatcher": {
28
+ "owner": "typescript",
29
+ "pattern": "$tsc",
30
+ "background": {
31
+ "activeOnStart": true,
32
+ "beginsPattern": {
33
+ "regexp": "(.*?)"
34
+ },
35
+ "endsPattern": {
36
+ "regexp": "bundle generation complete"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ ]
42
+ }
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # TestPackage
2
+
3
+ This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.1.3.
4
+
5
+ ## Development server
6
+
7
+ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
8
+
9
+ ## Code scaffolding
10
+
11
+ Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12
+
13
+ ## Build
14
+
15
+ Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16
+
17
+ ## Running unit tests
18
+
19
+ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20
+
21
+ ## Running end-to-end tests
22
+
23
+ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24
+
25
+ ## Further help
26
+
27
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
package/angular.json ADDED
@@ -0,0 +1,189 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "sadlc": {
7
+ "projectType": "application",
8
+ "schematics": {},
9
+ "root": "",
10
+ "sourceRoot": "src",
11
+ "prefix": "app",
12
+ "architect": {
13
+ "build": {
14
+ "builder": "@angular-devkit/build-angular:application",
15
+ "options": {
16
+ "outputPath": "dist/sadlc",
17
+ "index": "src/index.html",
18
+ "browser": "src/main.ts",
19
+ "polyfills": [
20
+ "zone.js"
21
+ ],
22
+ "tsConfig": "tsconfig.app.json",
23
+ "assets": [
24
+ "src/favicon.ico",
25
+ "src/assets"
26
+ ],
27
+ "styles": [
28
+ "src/custom-theme.scss",
29
+ "src/styles.css",
30
+ "ag-grid-community/styles/ag-grid.css",
31
+ "ag-grid-community/styles/ag-theme-alpine.css"
32
+ ],
33
+ "scripts": []
34
+ },
35
+ "configurations": {
36
+ "production": {
37
+ "budgets": [
38
+ {
39
+ "type": "initial",
40
+ "maximumWarning": "2mb",
41
+ "maximumError": "4mb"
42
+ },
43
+ {
44
+ "type": "anyComponentStyle",
45
+ "maximumWarning": "4kb",
46
+ "maximumError": "6kb"
47
+ }
48
+ ],
49
+ "outputHashing": "all"
50
+ },
51
+ "development": {
52
+ "optimization": false,
53
+ "extractLicenses": false,
54
+ "sourceMap": true
55
+ }
56
+ },
57
+ "defaultConfiguration": "production"
58
+ },
59
+ "serve": {
60
+ "builder": "@angular-devkit/build-angular:dev-server",
61
+ "configurations": {
62
+ "production": {
63
+ "buildTarget": "sadlc:build:production"
64
+ },
65
+ "development": {
66
+ "buildTarget": "sadlc:build:development"
67
+ }
68
+ },
69
+ "defaultConfiguration": "development"
70
+ },
71
+ "extract-i18n": {
72
+ "builder": "@angular-devkit/build-angular:extract-i18n",
73
+ "options": {
74
+ "buildTarget": "sadlc:build"
75
+ }
76
+ },
77
+ "test": {
78
+ "builder": "@angular-devkit/build-angular:karma",
79
+ "options": {
80
+ "polyfills": [
81
+ "zone.js",
82
+ "zone.js/testing"
83
+ ],
84
+ "tsConfig": "tsconfig.spec.json",
85
+ "assets": [
86
+ "src/favicon.ico",
87
+ "src/assets"
88
+ ],
89
+ "styles": [
90
+ "src/styles.css"
91
+ ],
92
+ "scripts": []
93
+ }
94
+ },
95
+ "storybook": {
96
+ "builder": "@storybook/angular:start-storybook",
97
+ "options": {
98
+ "configDir": ".storybook",
99
+ "browserTarget": "sadlc:build",
100
+ "compodoc": false,
101
+ "port": 6006
102
+ }
103
+ },
104
+ "build-storybook": {
105
+ "builder": "@storybook/angular:build-storybook",
106
+ "options": {
107
+ "configDir": ".storybook",
108
+ "browserTarget": "sadlc:build",
109
+ "compodoc": false,
110
+ "outputDir": "dist/storybook/sadlc",
111
+ "styles": ["src/styles.css", "src/custom-theme.scss"]
112
+ }
113
+ }
114
+ }
115
+ },
116
+ "component-library": {
117
+ "projectType": "library",
118
+ "root": "projects/component-library",
119
+ "sourceRoot": "projects/component-library/src",
120
+ "prefix": "lib",
121
+ "architect": {
122
+ "build": {
123
+ "builder": "@angular-devkit/build-angular:ng-packagr",
124
+ "options": {
125
+ "project": "projects/component-library/ng-package.json"
126
+ },
127
+ "configurations": {
128
+ "production": {
129
+ "tsConfig": "projects/component-library/tsconfig.lib.prod.json"
130
+ },
131
+ "development": {
132
+ "tsConfig": "projects/component-library/tsconfig.lib.json"
133
+ }
134
+ },
135
+ "defaultConfiguration": "production"
136
+ },
137
+ "test": {
138
+ "builder": "@angular-devkit/build-angular:karma",
139
+ "options": {
140
+ "tsConfig": "projects/component-library/tsconfig.spec.json",
141
+ "polyfills": [
142
+ "zone.js",
143
+ "zone.js/testing"
144
+ ]
145
+ }
146
+ },
147
+ "lint": {
148
+ "builder": "@angular-eslint/builder:lint",
149
+ "options": {
150
+ "lintFilePatterns":[
151
+ "src/**/*.ts",
152
+ "src/**/*/*.html"
153
+ ]
154
+ }
155
+ },
156
+ "storybook": {
157
+ "builder": "@storybook/angular:start-storybook",
158
+ "options": {
159
+ "configDir": "projects/component-library/.storybook",
160
+ "browserTarget": "component-library:build",
161
+ "compodoc": true,
162
+ "port": 6006,
163
+ "compodocArgs": [
164
+ "-e",
165
+ "json",
166
+ "-d",
167
+ "."
168
+ ]
169
+ }
170
+ },
171
+ "build-storybook": {
172
+ "builder": "@storybook/angular:build-storybook",
173
+ "options": {
174
+ "configDir": "projects/component-library/.storybook",
175
+ "browserTarget": "component-library:build",
176
+ "compodoc": true,
177
+ "compodocArgs": [
178
+ "-e",
179
+ "json",
180
+ "-d",
181
+ "."
182
+ ],
183
+ "outputDir": "dist/storybook/component-library"
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
@@ -0,0 +1,39 @@
1
+
2
+ > sadlc@0.0.25 build-storybook
3
+ > ng run sadlc:build-storybook --output-dir C:\Users\SARAS\AppData\Local\Temp\chromatic--4864-8RXA4OBPXIHg
4
+
5
+ info => Cleaning outputDir: C:\Users\SARAS\AppData\Local\Temp\chromatic--4864-8RXA4OBPXIHg
6
+ info => Loading presets
7
+ info Found existing addon "@storybook/addon-docs", skipping.
8
+ info Found existing addon "@storybook/addon-actions", skipping.
9
+ info Found existing addon "@storybook/addon-docs", skipping.
10
+ info Found existing addon "@storybook/addon-actions", skipping.
11
+ info => Building manager..
12
+ info => Manager built (469 ms)
13
+ info => Building preview..
14
+ info Addon-docs: using MDX3
15
+ info => Using implicit CSS loaders
16
+ info => Using angular browser target options from "sadlc:build"
17
+ info => Using angular project with "tsConfig:D:\practice\sadlc\.storybook\tsconfig.json"
18
+ info => Copying static files: src at C:\Users\SARAS\AppData\Local\Temp\chromatic--4864-8RXA4OBPXIHg
19
+ info => Using default Webpack5 setup
20
+ WARN export 'EmptyTabContent' (imported as 'EmptyTabContent') was not found in '@storybook/components' (possible exports: A, ActionBar, AddonPanel, Badge, Bar, Blockquote, Button, ClipboardCode, Code, DL, Div, DocumentWrapper, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, IconButtonSkeleton, Icons, Img, LI, Link, ListItem, Loader, OL, P, Placeholder, Pre, ResetWrapper, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, SyntaxHighlighter, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, icons, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset)
21
+ WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
22
+ WARN This can impact web performance.
23
+ WARN Assets:
24
+ WARN 805.4de14699a12f7c9f06f6.css (322 KiB)
25
+ WARN 664.76e61017.iframe.bundle.js (721 KiB)
26
+ WARN 56.1ad42925.iframe.bundle.js (1.32 MiB)
27
+ WARN 144.f0fb8473.iframe.bundle.js (897 KiB)
28
+ WARN 805.f421c610.iframe.bundle.js (3.45 MiB)
29
+ WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
30
+ WARN Entrypoints:
31
+ WARN main (3.87 MiB)
32
+ WARN runtime~main.d5aa068e.iframe.bundle.js
33
+ WARN 805.4de14699a12f7c9f06f6.css
34
+ WARN 805.f421c610.iframe.bundle.js
35
+ WARN main.1bc0e8fe940aa9df3425.css
36
+ WARN main.2240cc33.iframe.bundle.js
37
+ WARN
38
+ info => Preview built (57 s)
39
+ info => Output directory: C:\Users\SARAS\AppData\Local\Temp\chromatic--4864-8RXA4OBPXIHg
File without changes
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@sarasanalytics-com/design-system",
3
+ "version": "0.0.3",
4
+ "scripts": {
5
+ "ng": "ng",
6
+ "start": "ng serve",
7
+ "build": "ng build",
8
+ "watch": "ng build --watch --configuration development",
9
+ "test": "ng test",
10
+ "build-storybook": "ng run sadlc:build-storybook",
11
+ "chromatic": "npx chromatic --project-token chpt_c15abbd7dcf38ca",
12
+ "lint": "ng lint"
13
+ },
14
+ "private": false,
15
+ "dependencies": {
16
+ "@angular/animations": "^17.1.0",
17
+ "@angular/cdk": "^17.3.6",
18
+ "@angular/common": "^17.1.0",
19
+ "@angular/compiler": "^17.1.0",
20
+ "@angular/core": "^17.1.0",
21
+ "@angular/forms": "^17.1.0",
22
+ "@angular/material": "^17.3.6",
23
+ "@angular/platform-browser": "^17.1.0",
24
+ "@angular/platform-browser-dynamic": "^17.1.0",
25
+ "@angular/router": "^17.1.0",
26
+ "@fontsource/material-icons": "^5.0.18",
27
+ "@fontsource/roboto": "^5.0.13",
28
+ "@material-ui/core": "^4.12.4",
29
+ "@mui/icons-material": "^5.15.17",
30
+ "@mui/material": "^5.15.17",
31
+ "@ng-select/ng-select": "^12.0.7",
32
+ "@ngx-formly/core": "^6.3.0",
33
+ "ag-grid-angular": "^31.2.0",
34
+ "rxjs": "~7.8.0",
35
+ "tslib": "^2.3.0",
36
+ "zone.js": "~0.14.3"
37
+ },
38
+ "devDependencies": {
39
+ "@angular-devkit/build-angular": "^17.1.3",
40
+ "@angular-eslint/builder": "17.3.0",
41
+ "@angular-eslint/eslint-plugin": "17.3.0",
42
+ "@angular-eslint/eslint-plugin-template": "17.3.0",
43
+ "@angular-eslint/schematics": "17.3.0",
44
+ "@angular-eslint/template-parser": "17.3.0",
45
+ "@angular/cli": "^17.1.3",
46
+ "@angular/compiler-cli": "^17.1.0",
47
+ "@chromatic-com/storybook": "^1.2.18",
48
+ "@compodoc/compodoc": "^1.1.23",
49
+ "@mdx-js/react": "^3.0.1",
50
+ "@storybook/addon-actions": "^8.1.4",
51
+ "@storybook/addon-docs": "^8.1.3",
52
+ "@storybook/addon-essentials": "^8.0.0",
53
+ "@storybook/addon-interactions": "^8.0.0",
54
+ "@storybook/addon-links": "^8.0.0",
55
+ "@storybook/angular": "^8.0.0",
56
+ "@storybook/blocks": "^8.0.0",
57
+ "@storybook/test": "^8.0.0",
58
+ "@types/jasmine": "~5.1.0",
59
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
60
+ "@typescript-eslint/parser": "^7.2.0",
61
+ "chromatic": "^11.0.8",
62
+ "eslint": "^8.57.0",
63
+ "eslint-plugin-angular": "^4.1.0",
64
+ "jasmine-core": "~5.1.0",
65
+ "karma": "~6.4.0",
66
+ "karma-chrome-launcher": "~3.2.0",
67
+ "karma-coverage": "~2.2.0",
68
+ "karma-jasmine": "~5.1.0",
69
+ "karma-jasmine-html-reporter": "~2.1.0",
70
+ "ng-packagr": "^17.2.0",
71
+ "storybook": "^8.0.0",
72
+ "typescript": "~5.3.2"
73
+ }
74
+ }
@@ -0,0 +1,24 @@
1
+ # TestLibrary
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project component-library` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project component-library`.
8
+ > Note: Don't forget to add `--project component-library` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build component-library` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build component-library`, go to the dist folder `cd dist/component-library` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test component-library` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/component-library",
4
+ "assets": ["./assets"],
5
+ "lib": {
6
+ "entryFile": "src/public-api.ts"
7
+ }
8
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@sarasanalytics-com/design-system",
3
+ "version": "0.0.2",
4
+ "peerDependencies": {
5
+ "@angular/common": "^17.2.0",
6
+ "@angular/core": "^17.2.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false
12
+ }
@@ -0,0 +1,6 @@
1
+ export interface AvatarInterface {
2
+ id: string | number,
3
+ size: string,
4
+ imagePath: string,
5
+ altText: string
6
+ }