@radioactive-labs/plutonium 0.1.10 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radioactive-labs/plutonium",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Core assets for the Plutonium gem",
5
5
  "type": "module",
6
6
  "main": "src/js/core.js",
@@ -31,6 +31,7 @@
31
31
  "cssnano": "^7.0.2",
32
32
  "esbuild": "^0.20.1",
33
33
  "esbuild-plugin-manifest": "^1.0.3",
34
+ "flowbite-typography": "^1.0.5",
34
35
  "mermaid": "^11.4.0",
35
36
  "postcss": "^8.4.35",
36
37
  "postcss-cli": "^11.0.0",
@@ -233,11 +233,11 @@
233
233
 
234
234
  /* Preview */
235
235
  .editor-preview {
236
- @apply p-2.5 bg-gray-50 dark:bg-gray-900 prose dark:prose-invert max-w-none prose-sm sm:prose-base;
236
+ @apply p-2.5 bg-gray-50 dark:bg-gray-900 format dark:format-invert format-primary max-w-none;
237
237
  }
238
238
 
239
239
  .editor-preview-side {
240
- @apply fixed bottom-0 w-1/2 top-[50px] right-0 z-50 overflow-auto hidden box-border border border-gray-300 dark:border-gray-600 break-words prose dark:prose-invert max-w-none prose-sm sm:prose-base;
240
+ @apply fixed bottom-0 w-1/2 top-[50px] right-0 z-50 overflow-auto hidden box-border border border-gray-300 dark:border-gray-600 break-words format dark:format-invert format-primary max-w-none;
241
241
  }
242
242
 
243
243
  .editor-preview-active-side {
@@ -1,5 +1,6 @@
1
1
  @import "core.css";
2
2
  @import "easymde.css";
3
+ @import "slim_select.css";
3
4
 
4
5
  @tailwind base;
5
6
  @tailwind components;
@@ -0,0 +1,297 @@
1
+ @layer components {
2
+ :root {
3
+ --ss-primary-color: theme('colors.primary.500');
4
+ --ss-bg-color: theme('colors.white');
5
+ --ss-font-color: theme('colors.gray.900');
6
+ --ss-font-placeholder-color: theme('colors.gray.500');
7
+ --ss-disabled-color: theme('colors.gray.100');
8
+ --ss-border-color: theme('colors.gray.300');
9
+ --ss-highlight-color: theme('colors.yellow.200');
10
+ --ss-success-color: theme('colors.green.500');
11
+ --ss-error-color: theme('colors.red.500');
12
+ --ss-focus-color: theme('colors.primary.500');
13
+ }
14
+
15
+ .dark {
16
+ --ss-primary-color: theme('colors.primary.400');
17
+ --ss-bg-color: theme('colors.gray.700');
18
+ --ss-font-color: theme('colors.white');
19
+ --ss-font-placeholder-color: theme('colors.gray.400');
20
+ --ss-disabled-color: theme('colors.gray.800');
21
+ --ss-border-color: theme('colors.gray.600');
22
+ --ss-highlight-color: theme('colors.yellow.300');
23
+ --ss-success-color: theme('colors.green.400');
24
+ --ss-error-color: theme('colors.red.400');
25
+ --ss-focus-color: theme('colors.primary.400');
26
+ }
27
+
28
+ @keyframes ss-valueIn {
29
+ 0% {
30
+ @apply scale-0 opacity-0;
31
+ }
32
+
33
+ 100% {
34
+ @apply scale-100 opacity-100;
35
+ }
36
+ }
37
+
38
+ @keyframes ss-valueOut {
39
+ 0% {
40
+ @apply scale-100 opacity-100;
41
+ }
42
+
43
+ 100% {
44
+ @apply scale-0 opacity-0;
45
+ }
46
+ }
47
+
48
+ .ss-hide {
49
+ @apply hidden !important;
50
+ }
51
+
52
+ .ss-main {
53
+ @apply flex flex-row relative select-none w-full p-2 border rounded-md shadow-sm font-medium text-sm border-gray-300 bg-white text-gray-900 dark:bg-gray-700 dark:border-gray-600 dark:text-white focus:ring-primary-500 focus:border-primary-500 focus:outline-none cursor-pointer transition-colors duration-200 overflow-hidden;
54
+ }
55
+
56
+ .ss-main:focus {
57
+ @apply ring-1 ring-primary-500 border-primary-500;
58
+ }
59
+
60
+ .ss-main.ss-disabled {
61
+ @apply cursor-not-allowed bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400;
62
+ }
63
+
64
+ .ss-main.ss-open-above {
65
+ @apply rounded-b-md rounded-t-none;
66
+ }
67
+
68
+ .ss-main.ss-open-below {
69
+ @apply rounded-t-md rounded-b-none;
70
+ }
71
+
72
+ .ss-main .ss-values {
73
+ @apply inline-flex flex-wrap gap-[5px] flex-1;
74
+ }
75
+
76
+ .ss-main .ss-values .ss-placeholder {
77
+ @apply flex p-0 m-0 leading-normal items-center w-full text-gray-500 dark:text-gray-400 overflow-hidden truncate whitespace-nowrap;
78
+ }
79
+
80
+ .ss-main .ss-values .ss-max {
81
+ @apply flex select-none items-center w-fit text-xs text-white dark:text-gray-900 leading-normal p-[3px_5px] bg-primary-500 rounded-md;
82
+ }
83
+
84
+ .ss-main .ss-values .ss-single {
85
+ @apply flex m-0;
86
+ }
87
+
88
+ .ss-main .ss-values .ss-value {
89
+ @apply flex select-none items-center w-fit bg-primary-500 rounded-md;
90
+ animation: ss-valueIn 0.2s ease-out forwards;
91
+ }
92
+
93
+ .ss-main .ss-values .ss-value.ss-value-out {
94
+ animation: ss-valueOut 0.2s ease-out forwards;
95
+ }
96
+
97
+ .ss-main .ss-values .ss-value .ss-value-text {
98
+ @apply text-xs text-white dark:text-gray-900 leading-normal p-[3px_5px];
99
+ }
100
+
101
+ .ss-main .ss-values .ss-value .ss-value-delete {
102
+ @apply flex items-center h-[7px] w-[7px] p-[3px_5px] cursor-pointer border-l border-solid border-white dark:border-gray-900 box-content;
103
+ }
104
+
105
+ .ss-main .ss-values .ss-value .ss-value-delete svg {
106
+ @apply h-[7px] w-[7px];
107
+ }
108
+
109
+ .ss-main .ss-values .ss-value .ss-value-delete svg path {
110
+ @apply fill-none stroke-white dark:stroke-gray-900;
111
+ stroke-width: 18;
112
+ stroke-linecap: round;
113
+ stroke-linejoin: round;
114
+ }
115
+
116
+ .ss-main .ss-deselect {
117
+ @apply flex-none flex items-center justify-center w-fit h-auto p-[0_5px];
118
+ }
119
+
120
+ .ss-main .ss-deselect svg {
121
+ @apply w-[8px] h-[8px];
122
+ }
123
+
124
+ .ss-main .ss-deselect svg path {
125
+ @apply fill-none stroke-gray-500 dark:stroke-gray-400;
126
+ stroke-width: 20;
127
+ stroke-linecap: round;
128
+ stroke-linejoin: round;
129
+ }
130
+
131
+ .ss-main .ss-arrow {
132
+ @apply flex-none flex items-center justify-end w-4 h-4 m-auto;
133
+ }
134
+
135
+ .ss-main .ss-arrow path {
136
+ @apply fill-none stroke-gray-500 dark:stroke-gray-400 transition-transform duration-200;
137
+ stroke-width: 2;
138
+ stroke-linecap: round;
139
+ stroke-linejoin: round;
140
+ }
141
+
142
+ .ss-content {
143
+ @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];
144
+ }
145
+
146
+ .ss-content.ss-relative {
147
+ @apply relative h-full;
148
+ }
149
+
150
+ .ss-content.ss-fixed {
151
+ @apply fixed;
152
+ }
153
+
154
+ .ss-content.ss-open-above {
155
+ @apply flex-col-reverse opacity-100 scale-y-100 origin-bottom rounded-t-md;
156
+ }
157
+
158
+ .ss-content.ss-open-below {
159
+ @apply opacity-100 scale-y-100 origin-top rounded-b-md;
160
+ }
161
+
162
+ .ss-content .ss-search {
163
+ @apply flex-none flex flex-row p-2;
164
+ }
165
+
166
+ .ss-content .ss-search input {
167
+ @apply inline-flex text-base leading-normal flex-auto w-full min-w-0 p-2 m-0 border rounded-md shadow-sm font-medium text-sm border-gray-300 bg-gray-100 text-gray-900 placeholder-gray-400 dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white focus:ring-primary-500 focus:border-primary-500 focus:outline-none text-left box-border;
168
+ }
169
+
170
+ .ss-content .ss-search .ss-addable {
171
+ @apply inline-flex justify-center items-center cursor-pointer flex-none h-auto ml-2 border shadow-sm border-gray-300 dark:border-gray-600;
172
+ }
173
+
174
+ .ss-content .ss-search .ss-addable svg {
175
+ @apply flex items-center justify-end flex-none w-4 h-4 m-2;
176
+ }
177
+
178
+ .ss-content .ss-search .ss-addable svg path {
179
+ @apply fill-none stroke-gray-500 dark:stroke-gray-400;
180
+ stroke-width: 2;
181
+ stroke-linecap: round;
182
+ stroke-linejoin: round;
183
+ }
184
+
185
+ .ss-content .ss-list {
186
+ @apply flex-auto h-auto overflow-x-hidden overflow-y-auto;
187
+ }
188
+
189
+ .ss-content .ss-list .ss-error {
190
+ @apply text-red-500 dark:text-red-400 p-2;
191
+ }
192
+
193
+ .ss-content .ss-list .ss-searching {
194
+ @apply text-gray-900 dark:text-white p-2;
195
+ }
196
+
197
+ .ss-content .ss-list .ss-optgroup.ss-close .ss-option {
198
+ @apply hidden !important;
199
+ }
200
+
201
+ /* Update the specific no results style */
202
+ .ss-content .ss-list .ss-search {
203
+ @apply flex-none text-sm text-gray-500 dark:text-gray-400 p-2 font-medium;
204
+ }
205
+
206
+ /* The original search container styles should be scoped properly */
207
+ .ss-content>.ss-search {
208
+ @apply flex-none flex flex-row p-2;
209
+ }
210
+
211
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label {
212
+ @apply flex flex-row items-center justify-between p-2 bg-gray-50 dark:bg-gray-800;
213
+ }
214
+
215
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-label-text {
216
+ @apply flex-auto font-bold text-gray-900 dark:text-white;
217
+ }
218
+
219
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label:has(.ss-arrow) {
220
+ @apply cursor-pointer;
221
+ }
222
+
223
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions {
224
+ @apply flex-none flex flex-row items-center justify-center gap-2;
225
+ }
226
+
227
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall {
228
+ @apply flex-none flex flex-row cursor-pointer hover:opacity-50;
229
+ }
230
+
231
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall.ss-selected svg path {
232
+ @apply stroke-red-500 dark:stroke-red-400;
233
+ }
234
+
235
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall span {
236
+ @apply flex-none flex items-center justify-center text-[60%] text-center pr-1;
237
+ }
238
+
239
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall svg {
240
+ @apply flex-none w-[13px] h-[13px];
241
+ }
242
+
243
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall svg path {
244
+ @apply fill-none stroke-green-500 dark:stroke-green-400;
245
+ stroke-linecap: round;
246
+ stroke-linejoin: round;
247
+ }
248
+
249
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall svg:first-child {
250
+ stroke-width: 5;
251
+ }
252
+
253
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall svg:last-child {
254
+ stroke-width: 11;
255
+ }
256
+
257
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-closable {
258
+ @apply flex-none flex flex-row cursor-pointer;
259
+ }
260
+
261
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-closable .ss-arrow {
262
+ @apply flex-auto w-[10px] h-[10px];
263
+ }
264
+
265
+ .ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-closable .ss-arrow path {
266
+ @apply fill-none stroke-gray-500 dark:stroke-gray-400 transition-transform duration-200;
267
+ stroke-width: 2;
268
+ stroke-linecap: round;
269
+ stroke-linejoin: round;
270
+ }
271
+
272
+ .ss-content .ss-list .ss-optgroup .ss-option {
273
+ @apply p-2 pl-6;
274
+ }
275
+
276
+ .ss-content .ss-list .ss-option {
277
+ @apply block p-2 whitespace-normal text-gray-900 dark:text-white cursor-pointer select-none hover:bg-gray-100 dark:hover:bg-gray-600;
278
+ min-height: 0;
279
+ }
280
+
281
+ .ss-content .ss-list .ss-option:empty {
282
+ @apply hidden p-0 m-0;
283
+ }
284
+
285
+ .ss-content .ss-list .ss-option.ss-highlighted,
286
+ .ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected {
287
+ @apply text-white dark:text-gray-900 bg-primary-500;
288
+ }
289
+
290
+ .ss-content .ss-list .ss-option.ss-disabled {
291
+ @apply cursor-not-allowed bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400;
292
+ }
293
+
294
+ .ss-content .ss-list .ss-option .ss-search-highlight {
295
+ @apply inline-block bg-yellow-200 dark:bg-yellow-300;
296
+ }
297
+ }