@1001-digital/layers.prose 0.0.3 → 0.0.4

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.
@@ -1,5 +1,5 @@
1
1
  export default defineAppConfig({
2
2
  myLayer: {
3
- name: 'My amazing Nuxt layer (overwritten)'
4
- }
3
+ name: 'My amazing Nuxt layer (overwritten)',
4
+ },
5
5
  })
@@ -1,5 +1,7 @@
1
1
  import { fileURLToPath } from 'node:url'
2
2
 
3
+ const layerDir = fileURLToPath(new URL('..', import.meta.url))
4
+
3
5
  export default defineNuxtConfig({
4
6
  // Extends the prose layer (which in turn extends @base/)
5
7
  extends: ['..'],
@@ -8,7 +10,14 @@ export default defineNuxtConfig({
8
10
 
9
11
  eslint: {
10
12
  config: {
11
- rootDir: fileURLToPath(new URL('..', import.meta.url)),
13
+ rootDir: layerDir,
14
+ },
15
+ },
16
+ vite: {
17
+ server: {
18
+ watch: {
19
+ ignored: [`!${layerDir}/**`],
20
+ },
12
21
  },
13
22
  },
14
23
  })
@@ -25,8 +25,15 @@
25
25
  <h4>Default</h4>
26
26
  <Prose>
27
27
  <h1>This is a prose container</h1>
28
- <p>The Prose component wraps content and applies consistent typography styles for long-form text content like articles, blog posts, and documentation.</p>
29
- <p>It handles spacing, headings, links, lists, and other elements automatically.</p>
28
+ <p>
29
+ The Prose component wraps content and applies consistent
30
+ typography styles for long-form text content like articles, blog
31
+ posts, and documentation.
32
+ </p>
33
+ <p>
34
+ It handles spacing, headings, links, lists, and other elements
35
+ automatically.
36
+ </p>
30
37
  </Prose>
31
38
  </div>
32
39
 
@@ -34,7 +41,9 @@
34
41
  <h4>Centered</h4>
35
42
  <Prose centered>
36
43
  <h2>Centered Content</h2>
37
- <p>Use the <code>centered</code> prop to center-align text content.</p>
44
+ <p>
45
+ Use the <code>centered</code> prop to center-align text content.
46
+ </p>
38
47
  </Prose>
39
48
  </div>
40
49
  </article>
@@ -70,15 +79,25 @@
70
79
  <div class="component-demo">
71
80
  <h4>Paragraphs</h4>
72
81
  <Prose>
73
- <p>This is a paragraph with regular text. It demonstrates the default styling applied to prose content including line height and spacing.</p>
74
- <p>Multiple paragraphs are spaced evenly. Links in paragraphs are <a href="#">styled with underlines</a> to make them visible.</p>
82
+ <p>
83
+ This is a paragraph with regular text. It demonstrates the default
84
+ styling applied to prose content including line height and
85
+ spacing.
86
+ </p>
87
+ <p>
88
+ Multiple paragraphs are spaced evenly. Links in paragraphs are
89
+ <a href="#">styled with underlines</a> to make them visible.
90
+ </p>
75
91
  </Prose>
76
92
  </div>
77
93
 
78
94
  <div class="component-demo">
79
95
  <h4>Lead Text</h4>
80
96
  <Prose>
81
- <p class="lead">This is lead text, styled slightly larger for introductory content.</p>
97
+ <p class="lead">
98
+ This is lead text, styled slightly larger for introductory
99
+ content.
100
+ </p>
82
101
  <p>Regular paragraph text follows after the lead.</p>
83
102
  </Prose>
84
103
  </div>
@@ -87,7 +106,7 @@
87
106
  <h4>Horizontal Rule</h4>
88
107
  <Prose>
89
108
  <p>Content above the rule.</p>
90
- <hr>
109
+ <hr />
91
110
  <p>Content below the rule.</p>
92
111
  </Prose>
93
112
  </div>
@@ -103,7 +122,10 @@
103
122
  <ul>
104
123
  <li>First item</li>
105
124
  <li>Second item</li>
106
- <li>Third item with a longer description that wraps to multiple lines</li>
125
+ <li>
126
+ Third item with a longer description that wraps to multiple
127
+ lines
128
+ </li>
107
129
  <li>
108
130
  Nested list
109
131
  <ul>
@@ -142,7 +164,10 @@
142
164
  <h4>Basic Quote</h4>
143
165
  <Prose>
144
166
  <blockquote>
145
- <p>This is a blockquote. It's styled with a left border and italic text to distinguish it from regular content.</p>
167
+ <p>
168
+ This is a blockquote. It's styled with a left border and italic
169
+ text to distinguish it from regular content.
170
+ </p>
146
171
  </blockquote>
147
172
  </Prose>
148
173
  </div>
@@ -151,7 +176,10 @@
151
176
  <h4>With Citation</h4>
152
177
  <Prose>
153
178
  <blockquote>
154
- <p>Design is not just what it looks like and feels like. Design is how it works.</p>
179
+ <p>
180
+ Design is not just what it looks like and feels like. Design is
181
+ how it works.
182
+ </p>
155
183
  <cite>Steve Jobs</cite>
156
184
  </blockquote>
157
185
  </Prose>
@@ -165,7 +193,10 @@
165
193
  <div class="component-demo">
166
194
  <h4>Inline Code</h4>
167
195
  <Prose>
168
- <p>Use the <code>Prose</code> component to wrap your content. Set <code>centered</code> for centered text.</p>
196
+ <p>
197
+ Use the <code>Prose</code> component to wrap your content. Set
198
+ <code>centered</code> for centered text.
199
+ </p>
169
200
  </Prose>
170
201
  </div>
171
202
 
@@ -213,8 +244,14 @@
213
244
  <div class="component-demo">
214
245
  <h4>Basic Image</h4>
215
246
  <Prose>
216
- <p>Images in prose get consistent styling with borders and rounded corners.</p>
217
- <img src="https://picsum.photos/600/300" alt="Sample image">
247
+ <p>
248
+ Images in prose get consistent styling with borders and rounded
249
+ corners.
250
+ </p>
251
+ <img
252
+ src="https://picsum.photos/600/300"
253
+ alt="Sample image"
254
+ />
218
255
  </Prose>
219
256
  </div>
220
257
 
@@ -222,8 +259,13 @@
222
259
  <h4>Figure with Caption</h4>
223
260
  <Prose>
224
261
  <figure>
225
- <img src="https://picsum.photos/600/300?random=2" alt="Sample figure">
226
- <figcaption>Figure caption styled in muted text below the image.</figcaption>
262
+ <img
263
+ src="https://picsum.photos/600/300?random=2"
264
+ alt="Sample figure"
265
+ />
266
+ <figcaption>
267
+ Figure caption styled in muted text below the image.
268
+ </figcaption>
227
269
  </figure>
228
270
  </Prose>
229
271
  </div>
@@ -232,8 +274,7 @@
232
274
  </main>
233
275
  </template>
234
276
 
235
- <script setup lang="ts">
236
- </script>
277
+ <script setup lang="ts"></script>
237
278
 
238
279
  <style scoped>
239
280
  .library {
package/README.md CHANGED
@@ -38,7 +38,7 @@ Then add the dependency to their `extends` in `nuxt.config`:
38
38
 
39
39
  ```ts
40
40
  defineNuxtConfig({
41
- extends: 'your-layer'
41
+ extends: 'your-layer',
42
42
  })
43
43
  ```
44
44
 
package/app/app.config.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export default defineAppConfig({
2
2
  prose: {
3
- name: 'Hello from Nuxt layer'
4
- }
3
+ name: 'Hello from Nuxt layer',
4
+ },
5
5
  })
6
6
 
7
7
  declare module '@nuxt/schema' {
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <div class="prose" :class="{ centered }">
2
+ <div
3
+ class="prose"
4
+ :class="{ centered }"
5
+ >
3
6
  <slot />
4
7
  </div>
5
8
  </template>
package/nuxt.config.ts CHANGED
@@ -9,7 +9,5 @@ export default defineNuxtConfig({
9
9
 
10
10
  extends: ['@1001-digital/layers.base'],
11
11
 
12
- css: [
13
- join(currentDir, './app/assets/styles/index.css'),
14
- ],
12
+ css: [join(currentDir, './app/assets/styles/index.css')],
15
13
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@1001-digital/layers.prose",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "main": "./nuxt.config.ts",
6
6
  "devDependencies": {
7
7
  "@nuxt/eslint": "latest",
@@ -12,7 +12,7 @@
12
12
  "vue": "latest"
13
13
  },
14
14
  "dependencies": {
15
- "@1001-digital/layers.base": "0.0.14"
15
+ "@1001-digital/layers.base": "^0.0.32"
16
16
  },
17
17
  "scripts": {
18
18
  "dev": "nuxi dev .playground",