@allons-y/webc-patterns 0.1.0-beta.0 → 0.1.0-beta.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.
Files changed (48) hide show
  1. package/README.md +506 -5
  2. package/components/norn-accordion.webc +124 -0
  3. package/components/norn-breadcrumbs.webc +71 -0
  4. package/components/norn-callout.webc +97 -0
  5. package/components/norn-card-grid.webc +60 -0
  6. package/components/norn-card.webc +143 -0
  7. package/components/norn-code-tabs.webc +270 -0
  8. package/components/norn-copy-button.webc +220 -0
  9. package/components/norn-fact-list.webc +52 -0
  10. package/components/norn-footer.webc +122 -0
  11. package/components/norn-head.webc +59 -0
  12. package/components/norn-header.webc +238 -0
  13. package/components/norn-heading-anchor.webc +71 -0
  14. package/components/norn-hero.webc +81 -0
  15. package/components/norn-icon.webc +140 -0
  16. package/components/norn-link-button.webc +96 -0
  17. package/components/norn-notice.webc +94 -0
  18. package/components/norn-pager.webc +67 -0
  19. package/components/norn-rich-text.webc +105 -0
  20. package/components/norn-search.webc +303 -0
  21. package/components/norn-segmented-control.webc +143 -0
  22. package/components/norn-side-nav.webc +149 -0
  23. package/components/norn-sidebar-layout.webc +185 -0
  24. package/components/norn-simple-table.webc +120 -0
  25. package/components/norn-skip-link.webc +41 -0
  26. package/components/norn-theme-toggle.webc +127 -0
  27. package/components/norn-toc.webc +260 -0
  28. package/css/base.css +75 -0
  29. package/css/print.css +8 -0
  30. package/css/reset.css +45 -0
  31. package/fallback/norn-code-block.webc +13 -0
  32. package/index.js +170 -1
  33. package/layouts/norn-base.webc +137 -0
  34. package/layouts/norn-docs-home.webc +109 -0
  35. package/layouts/norn-docs.webc +77 -0
  36. package/layouts/norn-landing.webc +73 -0
  37. package/layouts/norn-workspace.webc +25 -0
  38. package/layouts/norn-workspaces-home.webc +44 -0
  39. package/lib/icons.js +166 -0
  40. package/lib/npm.js +49 -0
  41. package/lib/optional.js +25 -0
  42. package/lib/site.js +87 -0
  43. package/lib/workspaces.js +71 -0
  44. package/markdown.js +278 -0
  45. package/package.json +32 -3
  46. package/plugin.js +279 -0
  47. package/project.js +15 -0
  48. package/schema/project.schema.json +112 -0
@@ -0,0 +1,112 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://raw.githubusercontent.com/allonsy-studio/webc-resources/main/packages/webc-patterns/schema/project.schema.json",
4
+ "title": "Norn project data",
5
+ "description": "A project's own site data, beside package.json: what buildSite reads and a mapping passes to the layouts.",
6
+ "type": "object",
7
+ "properties": {
8
+ "tagline": {
9
+ "description": "Defaults to the first sentence of the package.json description.",
10
+ "type": "string"
11
+ },
12
+ "lede": {
13
+ "description": "Hero paragraph; defaults to the package.json description.",
14
+ "type": "string"
15
+ },
16
+ "install": {
17
+ "description": "Install command; defaults to `npm install <package name>`.",
18
+ "type": "string"
19
+ },
20
+ "usage": {
21
+ "description": "One copy-pasteable code sample under Usage.",
22
+ "type": "object",
23
+ "required": [
24
+ "language",
25
+ "code"
26
+ ],
27
+ "properties": {
28
+ "language": {
29
+ "type": "string"
30
+ },
31
+ "code": {
32
+ "type": "string"
33
+ },
34
+ "caption": {
35
+ "type": "string"
36
+ }
37
+ }
38
+ },
39
+ "features": {
40
+ "description": "Feature cards: three to six, each leading with what the project does for the reader.",
41
+ "type": "array",
42
+ "items": {
43
+ "type": "object",
44
+ "required": [
45
+ "title",
46
+ "description"
47
+ ],
48
+ "properties": {
49
+ "title": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "description": {
54
+ "type": "string",
55
+ "minLength": 1
56
+ },
57
+ "href": {
58
+ "type": "string"
59
+ }
60
+ }
61
+ }
62
+ },
63
+ "packages": {
64
+ "description": "Optional package index.",
65
+ "type": "array",
66
+ "items": {
67
+ "type": "object",
68
+ "required": [
69
+ "title",
70
+ "description"
71
+ ],
72
+ "properties": {
73
+ "title": {
74
+ "type": "string",
75
+ "minLength": 1
76
+ },
77
+ "description": {
78
+ "type": "string",
79
+ "minLength": 1
80
+ },
81
+ "href": {
82
+ "type": "string"
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "logo": {
88
+ "description": "The project's wordmark: a file in content/assets/img/. Without it the header shows the name.",
89
+ "type": "string"
90
+ },
91
+ "favicon": {
92
+ "description": "A file in content/assets/img/ (svg, png, ico, or webp). Without it the page links an empty icon, so browsers skip the /favicon.ico request.",
93
+ "type": "string"
94
+ },
95
+ "appleTouchIcon": {
96
+ "description": "A 180px png in content/assets/img/ for home screens. Optional.",
97
+ "type": "string"
98
+ },
99
+ "url": {
100
+ "description": "The site's URL. Without it, buildSite builds one from its `host` option and the repository name, or leaves it empty.",
101
+ "type": "string"
102
+ },
103
+ "accent": {
104
+ "not": {},
105
+ "description": "A style setting: set `--norn-ui-accent` in the project's tokens.css."
106
+ },
107
+ "fonts": {
108
+ "not": {},
109
+ "description": "A style setting: set `--norn-font-body` and `--norn-font-heading` in the project's tokens.css."
110
+ }
111
+ }
112
+ }