@wordup-md/nuxt-layer-shadcn-unocss 0.2.9 → 0.2.10

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.
@@ -12,6 +12,8 @@
12
12
  'cursor-pointer',
13
13
  size === 'sm'
14
14
  && 'rounded-md px-1.5 py-0.5 text-xs font-normal leading-none',
15
+ size === 'lg'
16
+ && 'px-3 text-base',
15
17
  ]"
16
18
  >
17
19
  <span v-if="title">
@@ -81,6 +81,7 @@ const defaultConfig: DefaultConfig = {
81
81
  },
82
82
  },
83
83
  showTitle: true,
84
+ showDescription: true,
84
85
  codeCopyToast: true,
85
86
  codeCopyToastText: 'Copied to clipboard!',
86
87
  fieldRequiredText: 'required',
package/index.d.ts CHANGED
@@ -344,6 +344,12 @@ interface DefaultConfig {
344
344
  * @default true
345
345
  */
346
346
  showTitle: boolean
347
+ /**
348
+ * Show or hide description in header
349
+ *
350
+ * @default true
351
+ */
352
+ showDescription: boolean
347
353
  /**
348
354
  * Show toast when code is copied
349
355
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wordup-md/nuxt-layer-shadcn-unocss",
3
3
  "type": "module",
4
- "version": "0.2.9",
4
+ "version": "0.2.10",
5
5
  "author": "Emmanuel Salomon <emmanuel.salomon@gmail.com>",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
@@ -36,7 +36,7 @@
36
36
  <LayoutTitle
37
37
  v-if="config.main?.showTitle && (page.showTitle ?? true)"
38
38
  :title="page?.title"
39
- :description="page?.description"
39
+ :description="config.main?.showDescription ? page?.description : ''"
40
40
  :badges="page?.badges"
41
41
  />
42
42