plutonium 0.19.13 → 0.20.0
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.
- checksums.yaml +4 -4
- data/app/assets/plutonium.css +11 -1
- data/app/assets/plutonium.js +2635 -2412
- data/app/assets/plutonium.js.map +4 -4
- data/app/assets/plutonium.min.js +50 -50
- data/app/assets/plutonium.min.js.map +4 -4
- data/lib/generators/pu/core/assets/assets_generator.rb +10 -2
- data/lib/generators/pu/core/assets/templates/postcss.config.js +1 -2
- data/lib/generators/pu/gem/annotated/annotated_generator.rb +1 -1
- data/lib/plutonium/version.rb +1 -1
- data/package-lock.json +2515 -3673
- data/package.json +8 -7
- data/postcss.config.js +1 -2
- data/src/css/easymde.css +12 -16
- data/src/css/plutonium.css +1 -3
- data/src/css/plutonium.entry.css +22 -0
- data/src/css/slim_select.css +19 -9
- metadata +3 -2
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@radioactive-labs/plutonium",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.0",
|
4
4
|
"description": "Core assets for the Plutonium gem",
|
5
5
|
"type": "module",
|
6
6
|
"main": "src/js/core.js",
|
@@ -30,9 +30,9 @@
|
|
30
30
|
"marked": "^15.0.3"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
|
-
"@tailwindcss/forms": "^0.5.
|
34
|
-
"@tailwindcss/
|
35
|
-
"
|
33
|
+
"@tailwindcss/forms": "^0.5.10",
|
34
|
+
"@tailwindcss/postcss": "^4.0.9",
|
35
|
+
"@tailwindcss/typography": "^0.5.16",
|
36
36
|
"concurrently": "^8.2.2",
|
37
37
|
"cssnano": "^7.0.2",
|
38
38
|
"esbuild": "^0.20.1",
|
@@ -42,7 +42,8 @@
|
|
42
42
|
"postcss": "^8.4.35",
|
43
43
|
"postcss-cli": "^11.0.0",
|
44
44
|
"postcss-hash": "^3.0.0",
|
45
|
-
"
|
45
|
+
"postcss-import": "^16.1.0",
|
46
|
+
"tailwindcss": "^4.0.9",
|
46
47
|
"vitepress": "^1.4.1",
|
47
48
|
"vitepress-plugin-mermaid": "^2.0.17"
|
48
49
|
},
|
@@ -50,9 +51,9 @@
|
|
50
51
|
"dev": "concurrently \"npm run css:dev\" \"npm run js:dev\"",
|
51
52
|
"build": "npm run js:prod && npm run css:prod",
|
52
53
|
"prepare": "npm run build",
|
53
|
-
"css:dev": "postcss src/css/plutonium.css -o src/build/plutonium.css --watch --dev",
|
54
|
+
"css:dev": "postcss src/css/plutonium.entry.css -o src/build/plutonium.css --watch --dev",
|
54
55
|
"js:dev": "node esbuild.config.js --dev",
|
55
|
-
"css:prod": "postcss src/css/plutonium.css -o app/assets/plutonium.css && postcss src/css/plutonium.css -o src/dist/css/plutonium.css",
|
56
|
+
"css:prod": "postcss src/css/plutonium.entry.css -o app/assets/plutonium.css && postcss src/css/plutonium.entry.css -o src/dist/css/plutonium.css",
|
56
57
|
"js:prod": "node esbuild.config.js",
|
57
58
|
"docs:dev": "vitepress dev docs",
|
58
59
|
"docs:build": "vitepress build docs",
|
data/postcss.config.js
CHANGED
data/src/css/easymde.css
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
.CodeMirror-scroll {
|
20
|
-
overflow: scroll
|
20
|
+
overflow: scroll;
|
21
21
|
margin-bottom: -50px;
|
22
22
|
margin-right: -50px;
|
23
23
|
padding-bottom: 50px;
|
@@ -92,7 +92,7 @@
|
|
92
92
|
|
93
93
|
.cm-fat-cursor .CodeMirror-cursor {
|
94
94
|
width: auto;
|
95
|
-
border: 0
|
95
|
+
border: 0;
|
96
96
|
background: #77ee77;
|
97
97
|
}
|
98
98
|
|
@@ -149,8 +149,8 @@
|
|
149
149
|
.CodeMirror-gutter-wrapper {
|
150
150
|
position: absolute;
|
151
151
|
z-index: 4;
|
152
|
-
background: none
|
153
|
-
border: none
|
152
|
+
background: none;
|
153
|
+
border: none;
|
154
154
|
}
|
155
155
|
|
156
156
|
/* EasyMDE Container */
|
@@ -287,10 +287,6 @@
|
|
287
287
|
}
|
288
288
|
|
289
289
|
/* Syntax Highlighting */
|
290
|
-
/* .cm-s-easymde .cm-header {
|
291
|
-
@apply text-blue-600 dark:text-blue-400;
|
292
|
-
} */
|
293
|
-
|
294
290
|
.cm-s-easymde .cm-em {
|
295
291
|
@apply italic text-secondary-600 dark:text-secondary-400;
|
296
292
|
}
|
@@ -340,14 +336,13 @@
|
|
340
336
|
}
|
341
337
|
|
342
338
|
.cm-formatting.cm-formatting-link {
|
343
|
-
@apply text-secondary-900 dark:text-secondary-400
|
339
|
+
@apply text-secondary-900 dark:text-secondary-400;
|
344
340
|
}
|
345
341
|
|
346
342
|
.cm-formatting.cm-formatting-link-string {
|
347
|
-
@apply text-secondary-900 dark:text-secondary-400
|
343
|
+
@apply text-secondary-900 dark:text-secondary-400;
|
348
344
|
}
|
349
345
|
|
350
|
-
|
351
346
|
.cm-s-easymde .cm-string {
|
352
347
|
@apply text-accent-600 dark:text-accent-400;
|
353
348
|
}
|
@@ -356,10 +351,6 @@
|
|
356
351
|
@apply text-accent-600 dark:text-accent-400;
|
357
352
|
}
|
358
353
|
|
359
|
-
/* .cm-s-easymde .cm-link {
|
360
|
-
@apply text-accent-600 dark:text-accent-400;
|
361
|
-
} */
|
362
|
-
|
363
354
|
.cm-s-easymde .cm-url {
|
364
355
|
@apply text-gray-900 dark:text-white;
|
365
356
|
}
|
@@ -514,7 +505,7 @@
|
|
514
505
|
.cm-fat-cursor .CodeMirror-cursor {
|
515
506
|
@apply bg-[#7e7];
|
516
507
|
width: auto;
|
517
|
-
border: 0
|
508
|
+
border: 0;
|
518
509
|
}
|
519
510
|
|
520
511
|
.cm-fat-cursor div.CodeMirror-cursors {
|
@@ -723,4 +714,9 @@
|
|
723
714
|
.editor-preview-full table th {
|
724
715
|
@apply border border-gray-300 dark:border-gray-600 p-1.5;
|
725
716
|
}
|
717
|
+
|
718
|
+
/* Hide elements that need to be hidden without !important */
|
719
|
+
.ss-content .ss-list .ss-optgroup.ss-close .ss-option {
|
720
|
+
display: none;
|
721
|
+
}
|
726
722
|
}
|
data/src/css/plutonium.css
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
@import "plutonium.css";
|
2
|
+
|
3
|
+
@config '../../tailwind.config.js';
|
4
|
+
|
5
|
+
/*
|
6
|
+
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
7
|
+
so we've added these compatibility styles to make sure everything still
|
8
|
+
looks the same as it did with Tailwind CSS v3.
|
9
|
+
|
10
|
+
If we ever want to remove these styles, we need to add an explicit border
|
11
|
+
color utility to any element that depends on these defaults.
|
12
|
+
*/
|
13
|
+
@layer base {
|
14
|
+
|
15
|
+
*,
|
16
|
+
::after,
|
17
|
+
::before,
|
18
|
+
::backdrop,
|
19
|
+
::file-selector-button {
|
20
|
+
border-color: var(--color-gray-200, currentColor);
|
21
|
+
}
|
22
|
+
}
|
data/src/css/slim_select.css
CHANGED
@@ -33,26 +33,30 @@
|
|
33
33
|
|
34
34
|
@keyframes ss-valueIn {
|
35
35
|
0% {
|
36
|
-
|
36
|
+
transform: scale(0);
|
37
|
+
opacity: 0;
|
37
38
|
}
|
38
39
|
|
39
40
|
100% {
|
40
|
-
|
41
|
+
transform: scale(1);
|
42
|
+
opacity: 1;
|
41
43
|
}
|
42
44
|
}
|
43
45
|
|
44
46
|
@keyframes ss-valueOut {
|
45
47
|
0% {
|
46
|
-
|
48
|
+
transform: scale(1);
|
49
|
+
opacity: 1;
|
47
50
|
}
|
48
51
|
|
49
52
|
100% {
|
50
|
-
|
53
|
+
transform: scale(0);
|
54
|
+
opacity: 0;
|
51
55
|
}
|
52
56
|
}
|
53
57
|
|
54
58
|
.ss-hide {
|
55
|
-
|
59
|
+
display: none;
|
56
60
|
}
|
57
61
|
|
58
62
|
.ss-main {
|
@@ -146,7 +150,9 @@
|
|
146
150
|
}
|
147
151
|
|
148
152
|
.ss-content {
|
149
|
-
@apply absolute flex h-auto flex-col w-auto max-h-[300px] box-border border rounded-b-md shadow-lg border-gray-300 bg-white dark:bg-gray-700 dark:border-gray-600 transition-all duration-200 opacity-0
|
153
|
+
@apply absolute flex h-auto flex-col w-auto max-h-[300px] box-border border rounded-b-md shadow-lg border-gray-300 bg-white dark:bg-gray-700 dark:border-gray-600 transition-all duration-200 opacity-0 z-[10000];
|
154
|
+
transform: scaleY(0);
|
155
|
+
transform-origin: top;
|
150
156
|
}
|
151
157
|
|
152
158
|
.ss-content.ss-relative {
|
@@ -158,11 +164,15 @@
|
|
158
164
|
}
|
159
165
|
|
160
166
|
.ss-content.ss-open-above {
|
161
|
-
@apply flex-col-reverse opacity-100
|
167
|
+
@apply flex-col-reverse opacity-100 rounded-t-md;
|
168
|
+
transform: scaleY(1);
|
169
|
+
transform-origin: bottom;
|
162
170
|
}
|
163
171
|
|
164
172
|
.ss-content.ss-open-below {
|
165
|
-
@apply opacity-100
|
173
|
+
@apply opacity-100 rounded-b-md;
|
174
|
+
transform: scaleY(1);
|
175
|
+
transform-origin: top;
|
166
176
|
}
|
167
177
|
|
168
178
|
.ss-content .ss-search {
|
@@ -201,7 +211,7 @@
|
|
201
211
|
}
|
202
212
|
|
203
213
|
.ss-content .ss-list .ss-optgroup.ss-close .ss-option {
|
204
|
-
|
214
|
+
display: none;
|
205
215
|
}
|
206
216
|
|
207
217
|
/* Update the specific no results style */
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -881,6 +881,7 @@ files:
|
|
881
881
|
- src/css/core.css
|
882
882
|
- src/css/easymde.css
|
883
883
|
- src/css/plutonium.css
|
884
|
+
- src/css/plutonium.entry.css
|
884
885
|
- src/css/slim_select.css
|
885
886
|
- src/js/controllers/attachment_input_controller.js
|
886
887
|
- src/js/controllers/attachment_preview_container_controller.js
|