@youngonesworks/ui 0.1.118 → 0.1.120

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.
package/dist/globals.css CHANGED
@@ -9,6 +9,7 @@
9
9
  @import "./styles/variables.css";
10
10
  @import "./styles/utilities.css";
11
11
  @import "react-phone-input-2/lib/style.css";
12
+ @import "./styles/editor.css";
12
13
 
13
14
  @keyframes spin {
14
15
  from {
@@ -19,27 +20,4 @@
19
20
  }
20
21
  }
21
22
 
22
- .tiptap {
23
- :first-child {
24
- margin-top: 0;
25
- }
26
-
27
- /* List styles */
28
- ul,
29
- ol {
30
- padding: 0 1rem;
31
- margin: 1.25rem 1rem 1.25rem 0.4rem;
32
-
33
- li p {
34
- margin-top: 0.25em;
35
- margin-bottom: 0.25em;
36
- }
37
- }
38
23
 
39
- ul {
40
- list-style-type: disc;
41
- }
42
- ol {
43
- list-style-type: decimal;
44
- }
45
- }
@@ -0,0 +1,27 @@
1
+ /* Editor-specific global styles */
2
+ /* Safe to share across apps */
3
+
4
+ .tiptap,
5
+ .ProseMirror {
6
+ > :first-child {
7
+ margin-top: 0;
8
+ }
9
+
10
+ ul,
11
+ ol {
12
+ padding-left: 1rem;
13
+ margin: 1.25rem 1rem 1.25rem 0.4rem;
14
+ }
15
+
16
+ ul {
17
+ list-style-type: disc;
18
+ }
19
+
20
+ ol {
21
+ list-style-type: decimal;
22
+ }
23
+
24
+ li p {
25
+ margin: 0.25em 0;
26
+ }
27
+ }
@@ -7,4 +7,5 @@ export declare const CSS_PATHS: {
7
7
  readonly utilities: "./utilities.css";
8
8
  readonly tailwind: "./tailwind.css";
9
9
  readonly globals: "../globals.css";
10
+ readonly editor: "./editor.css";
10
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youngonesworks/ui",
3
- "version": "0.1.118",
3
+ "version": "0.1.120",
4
4
  "description": "A Youngones UI component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -20,6 +20,7 @@
20
20
  "./styles/variables.css": "./dist/styles/variables.css",
21
21
  "./styles/utilities.css": "./dist/styles/utilities.css",
22
22
  "./styles/tailwind.css": "./dist/styles/tailwind.css",
23
+ "./styles/editor.css": "./dist/styles/editor.css",
23
24
  "./globals.css": "./dist/globals.css",
24
25
  "./assets/*": "./dist/assets/*"
25
26
  },
@@ -40,7 +41,7 @@
40
41
  "prepublishOnly": "npm run build",
41
42
  "buildAndPublish": "npm run build && npm publish",
42
43
  "chromatic": "chromatic --project-token $CHROMATIC_PROJECT_TOKEN",
43
- "prepare": "husky install",
44
+ "prepare": "husky",
44
45
  "bump": "bash scripts/bump_version_if_src_changed.sh",
45
46
  "lint": "eslint .",
46
47
  "lint:fix": "eslint . --fix",