sprintify-ui 0.11.9 → 0.11.11

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.
@@ -15,6 +15,7 @@ type __VLS_Props = {
15
15
  required?: boolean;
16
16
  name?: string;
17
17
  hasError?: boolean;
18
+ noMargin?: boolean;
18
19
  };
19
20
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
21
  blur: (...args: any[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.11.9",
3
+ "version": "0.11.11",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -11,6 +11,8 @@ body {
11
11
  .ck-content {
12
12
 
13
13
  @apply p-3.5;
14
+
15
+ @apply leading-snug;
14
16
 
15
17
  h1, h2, h3, h4, h5, h6 {
16
18
  @apply font-bold leading-snug tracking-normal;
@@ -43,15 +45,10 @@ body {
43
45
  }
44
46
 
45
47
  p {
46
- @apply text-base leading-relaxed;
48
+ @apply text-base leading-snug;
47
49
  margin: 1em 0;
48
50
  }
49
51
 
50
- p:has(+ ol),
51
- p:has(+ ul) {
52
- margin-bottom: 0;
53
- }
54
-
55
52
  h1,
56
53
  h2,
57
54
  h3,
@@ -66,11 +63,12 @@ body {
66
63
 
67
64
  ol,
68
65
  ul {
69
- @apply text-base leading-relaxed;
70
- padding-left: 1em;
71
- margin-bottom: 1.5em;
66
+ @apply text-base leading-snug;
67
+ padding-left: 1.5em;
68
+ margin-bottom: 1em;
72
69
 
73
70
  li {
71
+ @apply leading-snug;
74
72
  margin: 0.3em 0;
75
73
 
76
74
  &::before {
@@ -273,6 +271,20 @@ body {
273
271
  }
274
272
  }
275
273
  }
274
+
275
+ .base-rich-text-no-margin {
276
+ .ck-content {
277
+ h1, h2, h3, h4, h5, h6, p, ol, ul {
278
+ margin: 0;
279
+ }
280
+
281
+ ol, ul {
282
+ li {
283
+ margin: 0;
284
+ }
285
+ }
286
+ }
287
+ }
276
288
  }
277
289
 
278
290
  /** TipTap */
@@ -54,19 +54,3 @@
54
54
  border-radius: 0;
55
55
  }
56
56
  }
57
-
58
- /** prose overwrites */
59
-
60
- body .prose {
61
-
62
- line-height: 1.5;
63
-
64
- & p:has(+ ol),
65
- & p:has(+ ul) {
66
- margin-bottom: 0;
67
- }
68
-
69
- ul, ol {
70
- margin-top: 0;
71
- }
72
- }
@@ -192,8 +192,8 @@ import { deepIncludes } from '@/utils/deepIncludes';
192
192
 
193
193
  const DEFAULT_QUERY = {
194
194
  page: 1,
195
- search: '',
196
- sort: '',
195
+ search: undefined,
196
+ sort: undefined,
197
197
  filter: {},
198
198
  } as DataTableQuery;
199
199
  </script>
@@ -20,6 +20,7 @@
20
20
  sizeInternal == 'md' ? 'base-rich-text-base' : '',
21
21
  sizeInternal == 'lg' ? 'base-rich-text-lg' : '',
22
22
  sizeInternal == 'xl' ? 'base-rich-text-xl' : '',
23
+ props.noMargin ? 'base-rich-text-no-margin' : '',
23
24
  ]"
24
25
  >
25
26
  <BaseCkeditor
@@ -61,6 +62,7 @@ const props = withDefaults(defineProps<{
61
62
  required?: boolean;
62
63
  name?: string;
63
64
  hasError?: boolean;
65
+ noMargin?: boolean;
64
66
  }>(), {
65
67
  driver: 'ckeditor',
66
68
  editor: 'classic',