@cedros/data-react 0.1.5 → 0.1.7

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 (38) hide show
  1. package/README.md +108 -6
  2. package/dist/admin/icons.d.ts +1 -0
  3. package/dist/admin/icons.js +2 -1
  4. package/dist/admin/plugin.js +11 -1
  5. package/dist/admin/sectionIds.d.ts +2 -1
  6. package/dist/admin/sectionIds.js +4 -2
  7. package/dist/admin/sections/LayoutSection.d.ts +2 -0
  8. package/dist/admin/sections/LayoutSection.js +104 -0
  9. package/dist/admin/styles.css +11 -11
  10. package/dist/react/CedrosDataProvider.d.ts +28 -0
  11. package/dist/react/CedrosDataProvider.js +76 -0
  12. package/dist/react/contentCollections.d.ts +4 -0
  13. package/dist/react/contentCollections.js +48 -0
  14. package/dist/react/entries.js +6 -7
  15. package/dist/react/index.d.ts +2 -0
  16. package/dist/react/index.js +1 -0
  17. package/dist/react/sitemap.js +7 -20
  18. package/dist/react/slugs.js +7 -20
  19. package/dist/react/theme.d.ts +33 -0
  20. package/dist/react/theme.js +1 -0
  21. package/dist/site-templates/DocsTemplates.d.ts +9 -8
  22. package/dist/site-templates/DocsTemplates.js +32 -17
  23. package/dist/site-templates/SiteFooter.d.ts +7 -1
  24. package/dist/site-templates/SiteFooter.js +5 -2
  25. package/dist/site-templates/SiteLayout.d.ts +9 -1
  26. package/dist/site-templates/SiteLayout.js +2 -2
  27. package/dist/site-templates/TopNav.d.ts +11 -1
  28. package/dist/site-templates/TopNav.js +12 -2
  29. package/dist/site-templates/contentIndex.d.ts +4 -0
  30. package/dist/site-templates/contentIndex.js +15 -1
  31. package/dist/site-templates/docsNavigation.d.ts +30 -1
  32. package/dist/site-templates/docsNavigation.js +132 -1
  33. package/dist/site-templates/docsTemplateShell.d.ts +8 -0
  34. package/dist/site-templates/docsTemplateShell.js +14 -0
  35. package/dist/site-templates/index.d.ts +4 -4
  36. package/dist/site-templates/index.js +1 -1
  37. package/dist/site-templates/styles.css +52 -8
  38. package/package.json +1 -1
@@ -27,14 +27,14 @@
27
27
  }
28
28
 
29
29
  .cedros-dark .cedros-site {
30
- --cds-bg: hsl(222.2, 84%, 4.9%);
31
- --cds-fg: hsl(210, 40%, 98%);
32
- --cds-muted: hsl(215, 20.2%, 65.1%);
33
- --cds-muted-bg: hsl(217.2, 32.6%, 17.5%);
34
- --cds-border: hsl(217.2, 32.6%, 17.5%);
35
- --cds-link: hsl(217.2, 91.2%, 59.8%);
36
- --cds-primary: hsl(210, 40%, 98%);
37
- --cds-primary-fg: hsl(222.2, 47.4%, 11.2%);
30
+ --cds-bg: var(--cedros-background, hsl(222.2, 84%, 4.9%));
31
+ --cds-fg: var(--cedros-foreground, hsl(210, 40%, 98%));
32
+ --cds-muted: var(--cedros-muted-foreground, hsl(215, 20.2%, 65.1%));
33
+ --cds-muted-bg: var(--cedros-muted, hsl(217.2, 32.6%, 17.5%));
34
+ --cds-border: var(--cedros-border, hsl(217.2, 32.6%, 17.5%));
35
+ --cds-link: var(--cedros-link, hsl(217.2, 91.2%, 59.8%));
36
+ --cds-primary: var(--cedros-primary, hsl(210, 40%, 98%));
37
+ --cds-primary-fg: var(--cedros-primary-foreground, hsl(222.2, 47.4%, 11.2%));
38
38
  }
39
39
 
40
40
  .cedros-site__container {
@@ -107,6 +107,50 @@
107
107
  gap: 0.45rem;
108
108
  }
109
109
 
110
+ /* -- Nav layout modifiers ------------------------------------------------- */
111
+
112
+ .cedros-site__header--full .cedros-site__container {
113
+ width: 100%;
114
+ max-width: none;
115
+ padding: 0 1.5rem;
116
+ }
117
+
118
+ .cedros-site__header--nav-center .cedros-site__nav {
119
+ flex: 1;
120
+ justify-content: center;
121
+ margin-left: 0;
122
+ }
123
+
124
+ .cedros-site__nav-link--text {
125
+ border-color: transparent;
126
+ border-radius: 0;
127
+ background: transparent;
128
+ padding: 0.45rem 0.25rem;
129
+ }
130
+
131
+ .cedros-site__nav-link--text:hover {
132
+ background: transparent;
133
+ border-color: transparent;
134
+ text-decoration: underline;
135
+ }
136
+
137
+ .cedros-site__nav-link--text.cedros-site__nav-link--active {
138
+ background: transparent;
139
+ border-color: transparent;
140
+ color: var(--cds-link);
141
+ text-decoration: underline;
142
+ }
143
+
144
+ /* -- Footer layout modifiers ---------------------------------------------- */
145
+
146
+ .cedros-site__footer--full .cedros-site__container {
147
+ width: 100%;
148
+ max-width: none;
149
+ padding: 0 1.5rem;
150
+ }
151
+
152
+ /* ------------------------------------------------------------------------- */
153
+
110
154
  .cedros-site__main {
111
155
  padding: 1.5rem 0 2.4rem;
112
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedros/data-react",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "React components, page templates, and Next.js integration for cedros-data",
5
5
  "type": "module",
6
6
  "main": "./dist/react/index.js",