@gob-ds/gob-ds 1.0.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.
Files changed (84) hide show
  1. package/.editorconfig +17 -0
  2. package/.storybook/main.ts +19 -0
  3. package/.storybook/preview.ts +18 -0
  4. package/.storybook/tsconfig.doc.json +10 -0
  5. package/.storybook/tsconfig.json +11 -0
  6. package/.storybook/typings.d.ts +4 -0
  7. package/.vscode/extensions.json +4 -0
  8. package/.vscode/launch.json +20 -0
  9. package/.vscode/mcp.json +9 -0
  10. package/.vscode/tasks.json +42 -0
  11. package/README.md +0 -0
  12. package/angular.json +113 -0
  13. package/documentation.json +1472 -0
  14. package/package.json +65 -0
  15. package/public/favicon.ico +0 -0
  16. package/src/app/app.config.server.ts +12 -0
  17. package/src/app/app.config.ts +12 -0
  18. package/src/app/app.html +342 -0
  19. package/src/app/app.routes.server.ts +8 -0
  20. package/src/app/app.routes.ts +3 -0
  21. package/src/app/app.scss +0 -0
  22. package/src/app/app.spec.ts +23 -0
  23. package/src/app/app.ts +12 -0
  24. package/src/app/lib/alert-dialog/alert-dialog.component.html +35 -0
  25. package/src/app/lib/alert-dialog/alert-dialog.component.scss +94 -0
  26. package/src/app/lib/alert-dialog/alert-dialog.component.ts +144 -0
  27. package/src/app/lib/badge/badge.component.ts +25 -0
  28. package/src/app/lib/badge/badge.scss +50 -0
  29. package/src/app/lib/button/button.component.html +35 -0
  30. package/src/app/lib/button/button.component.scss +226 -0
  31. package/src/app/lib/button/button.component.ts +70 -0
  32. package/src/app/lib/checkbox/checkbox.component.html +34 -0
  33. package/src/app/lib/checkbox/checkbox.component.scss +80 -0
  34. package/src/app/lib/checkbox/checkbox.component.ts +84 -0
  35. package/src/app/lib/input/input.component.html +43 -0
  36. package/src/app/lib/input/input.component.scss +181 -0
  37. package/src/app/lib/input/input.component.ts +87 -0
  38. package/src/app/lib/search/search.component.html +30 -0
  39. package/src/app/lib/search/search.component.scss +102 -0
  40. package/src/app/lib/search/search.component.ts +73 -0
  41. package/src/index.html +13 -0
  42. package/src/main.server.ts +8 -0
  43. package/src/main.ts +6 -0
  44. package/src/server.ts +68 -0
  45. package/src/stories/Configure.mdx +364 -0
  46. package/src/stories/assets/accessibility.png +0 -0
  47. package/src/stories/assets/accessibility.svg +1 -0
  48. package/src/stories/assets/addon-library.png +0 -0
  49. package/src/stories/assets/assets.png +0 -0
  50. package/src/stories/assets/avif-test-image.avif +0 -0
  51. package/src/stories/assets/context.png +0 -0
  52. package/src/stories/assets/discord.svg +1 -0
  53. package/src/stories/assets/docs.png +0 -0
  54. package/src/stories/assets/figma-plugin.png +0 -0
  55. package/src/stories/assets/github.svg +1 -0
  56. package/src/stories/assets/share.png +0 -0
  57. package/src/stories/assets/styling.png +0 -0
  58. package/src/stories/assets/testing.png +0 -0
  59. package/src/stories/assets/theming.png +0 -0
  60. package/src/stories/assets/tutorials.svg +1 -0
  61. package/src/stories/assets/youtube.svg +1 -0
  62. package/src/stories/components/alert-dialog.stories.ts +60 -0
  63. package/src/stories/components/badge.stories.ts +111 -0
  64. package/src/stories/components/button.stories.ts +329 -0
  65. package/src/stories/components/checkbox.stories.ts +102 -0
  66. package/src/stories/components/input.stories.ts +100 -0
  67. package/src/stories/components/search.stories.ts +81 -0
  68. package/src/stories/user.ts +3 -0
  69. package/src/styles.scss +14 -0
  70. package/src/tokens/stories/borders.stories.ts +118 -0
  71. package/src/tokens/stories/colors.stories.ts +90 -0
  72. package/src/tokens/stories/shadows.stories.ts +93 -0
  73. package/src/tokens/stories/spacing.stories.ts +55 -0
  74. package/src/tokens/stories/typography.stories.ts +76 -0
  75. package/src/tokens/styles/_borders.scss +16 -0
  76. package/src/tokens/styles/_colors.scss +76 -0
  77. package/src/tokens/styles/_shadows.scss +9 -0
  78. package/src/tokens/styles/_spacing.scss +17 -0
  79. package/src/tokens/styles/_typography.scss +34 -0
  80. package/src/tokens/styles/tokens.scss +5 -0
  81. package/src/tokens/tokens.ts +42 -0
  82. package/tsconfig.app.json +17 -0
  83. package/tsconfig.json +33 -0
  84. package/tsconfig.spec.json +15 -0
package/.editorconfig ADDED
@@ -0,0 +1,17 @@
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
+ ij_typescript_use_double_quotes = false
14
+
15
+ [*.md]
16
+ max_line_length = off
17
+ trim_trailing_whitespace = false
@@ -0,0 +1,19 @@
1
+ import type { StorybookConfig } from '@storybook/angular';
2
+
3
+ const config: StorybookConfig = {
4
+ stories: [
5
+ '../src/**/*.mdx',
6
+ '../src/**/*.stories.@(ts|tsx|js|jsx|mdx)',
7
+ ],
8
+ addons: [
9
+ '@storybook/addon-a11y',
10
+ '@storybook/addon-docs',
11
+ ],
12
+ framework: {
13
+ name: '@storybook/angular',
14
+ options: {},
15
+ },
16
+ staticDirs: ['../public'],
17
+ };
18
+
19
+ export default config;
@@ -0,0 +1,18 @@
1
+ import type { Preview } from '@storybook/angular';
2
+
3
+ const preview: Preview = {
4
+ parameters: {
5
+ controls: { matchers: { color: /(background|color)$/i } },
6
+ backgrounds: {
7
+ default: 'light',
8
+ values: [
9
+ { name: 'light', value: '#ffffff' },
10
+ { name: 'subtle', value: '#F9FAFB' },
11
+ { name: 'dark', value: '#111827' },
12
+ ],
13
+ },
14
+ },
15
+ tags: ['autodocs'],
16
+ };
17
+
18
+ export default preview;
@@ -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,4 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
+ "recommendations": ["angular.ng-template"]
4
+ }
@@ -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,9 @@
1
+ {
2
+ // For more information, visit: https://angular.dev/ai/mcp
3
+ "servers": {
4
+ "angular-cli": {
5
+ "command": "npx",
6
+ "args": ["-y", "@angular/cli", "mcp"]
7
+ }
8
+ }
9
+ }
@@ -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": "Changes detected"
16
+ },
17
+ "endsPattern": {
18
+ "regexp": "bundle generation (complete|failed)"
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": "Changes detected"
34
+ },
35
+ "endsPattern": {
36
+ "regexp": "bundle generation (complete|failed)"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ ]
42
+ }
package/README.md ADDED
Binary file
package/angular.json ADDED
@@ -0,0 +1,113 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "cli": {
5
+ "packageManager": "npm"
6
+ },
7
+ "newProjectRoot": "projects",
8
+ "projects": {
9
+ "gob-ds": {
10
+ "projectType": "application",
11
+ "schematics": {
12
+ "@schematics/angular:component": {
13
+ "style": "scss"
14
+ }
15
+ },
16
+ "root": "",
17
+ "sourceRoot": "src",
18
+ "prefix": "app",
19
+ "architect": {
20
+ "build": {
21
+ "builder": "@angular/build:application",
22
+ "options": {
23
+ "browser": "src/main.ts",
24
+ "tsConfig": "tsconfig.app.json",
25
+ "inlineStyleLanguage": "scss",
26
+ "assets": [
27
+ {
28
+ "glob": "**/*",
29
+ "input": "public"
30
+ }
31
+ ],
32
+ "styles": [
33
+ "src/styles.scss"
34
+ ],
35
+ "server": "src/main.server.ts",
36
+ "outputMode": "server",
37
+ "ssr": {
38
+ "entry": "src/server.ts"
39
+ }
40
+ },
41
+ "configurations": {
42
+ "production": {
43
+ "budgets": [
44
+ {
45
+ "type": "initial",
46
+ "maximumWarning": "500kB",
47
+ "maximumError": "1MB"
48
+ },
49
+ {
50
+ "type": "anyComponentStyle",
51
+ "maximumWarning": "4kB",
52
+ "maximumError": "8kB"
53
+ }
54
+ ],
55
+ "outputHashing": "all"
56
+ },
57
+ "development": {
58
+ "optimization": false,
59
+ "extractLicenses": false,
60
+ "sourceMap": true
61
+ }
62
+ },
63
+ "defaultConfiguration": "production"
64
+ },
65
+ "serve": {
66
+ "builder": "@angular/build:dev-server",
67
+ "configurations": {
68
+ "production": {
69
+ "buildTarget": "gob-ds:build:production"
70
+ },
71
+ "development": {
72
+ "buildTarget": "gob-ds:build:development"
73
+ }
74
+ },
75
+ "defaultConfiguration": "development"
76
+ },
77
+ "test": {
78
+ "builder": "@angular/build:unit-test"
79
+ },
80
+ "storybook": {
81
+ "builder": "@storybook/angular:start-storybook",
82
+ "options": {
83
+ "configDir": ".storybook",
84
+ "browserTarget": "gob-ds:build",
85
+ "compodoc": true,
86
+ "compodocArgs": [
87
+ "-e",
88
+ "json",
89
+ "-d",
90
+ "."
91
+ ],
92
+ "port": 6006
93
+ }
94
+ },
95
+ "build-storybook": {
96
+ "builder": "@storybook/angular:build-storybook",
97
+ "options": {
98
+ "configDir": ".storybook",
99
+ "browserTarget": "gob-ds:build",
100
+ "compodoc": true,
101
+ "compodocArgs": [
102
+ "-e",
103
+ "json",
104
+ "-d",
105
+ "."
106
+ ],
107
+ "outputDir": "storybook-static"
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }