plutonium 0.19.13 → 0.20.1

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.
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radioactive-labs/plutonium",
3
- "version": "0.3.6",
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.7",
34
- "@tailwindcss/typography": "^0.5.15",
35
- "autoprefixer": "^10.4.18",
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
- "tailwindcss": "^3.4.1",
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
@@ -1,8 +1,7 @@
1
1
  const config = {
2
2
  plugins: {
3
3
  'postcss-import': {},
4
- tailwindcss: {},
5
- autoprefixer: {}
4
+ '@tailwindcss/postcss': {}
6
5
  }
7
6
  }
8
7
 
data/src/css/easymde.css CHANGED
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .CodeMirror-scroll {
20
- overflow: scroll !important;
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 !important;
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 !important;
153
- border: none !important;
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 !important;
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 !important;
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 !important;
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
  }
@@ -1,7 +1,3 @@
1
1
  @import "core.css";
2
2
  @import "easymde.css";
3
3
  @import "slim_select.css";
4
-
5
- @tailwind base;
6
- @tailwind components;
7
- @tailwind utilities;
@@ -0,0 +1,23 @@
1
+ @import "plutonium.css";
2
+
3
+ @import 'tailwindcss';
4
+ @config '../../tailwind.config.js';
5
+
6
+ /*
7
+ The default border color has changed to `currentColor` in Tailwind CSS v4,
8
+ so we've added these compatibility styles to make sure everything still
9
+ looks the same as it did with Tailwind CSS v3.
10
+
11
+ If we ever want to remove these styles, we need to add an explicit border
12
+ color utility to any element that depends on these defaults.
13
+ */
14
+ @layer base {
15
+
16
+ *,
17
+ ::after,
18
+ ::before,
19
+ ::backdrop,
20
+ ::file-selector-button {
21
+ border-color: var(--color-gray-200, currentColor);
22
+ }
23
+ }
@@ -33,26 +33,30 @@
33
33
 
34
34
  @keyframes ss-valueIn {
35
35
  0% {
36
- @apply scale-0 opacity-0;
36
+ transform: scale(0);
37
+ opacity: 0;
37
38
  }
38
39
 
39
40
  100% {
40
- @apply scale-100 opacity-100;
41
+ transform: scale(1);
42
+ opacity: 1;
41
43
  }
42
44
  }
43
45
 
44
46
  @keyframes ss-valueOut {
45
47
  0% {
46
- @apply scale-100 opacity-100;
48
+ transform: scale(1);
49
+ opacity: 1;
47
50
  }
48
51
 
49
52
  100% {
50
- @apply scale-0 opacity-0;
53
+ transform: scale(0);
54
+ opacity: 0;
51
55
  }
52
56
  }
53
57
 
54
58
  .ss-hide {
55
- @apply hidden !important;
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 scale-y-0 origin-top overflow-hidden z-[10000];
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 scale-y-100 origin-bottom rounded-t-md;
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 scale-y-100 origin-top rounded-b-md;
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
- @apply hidden !important;
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.19.13
4
+ version: 0.20.1
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-02 00:00:00.000000000 Z
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