@meowdown/react 0.84.0 → 0.85.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.
Files changed (3) hide show
  1. package/dist/index.js +705 -325
  2. package/dist/style.css +15 -115
  3. package/package.json +3 -4
package/dist/style.css CHANGED
@@ -96,100 +96,18 @@
96
96
  .meow_TriggerIcon_D3j_9q {
97
97
  display: flex;
98
98
 
99
- & svg {
100
- width: .85rem;
101
- height: .85rem;
102
- display: block;
103
- }
104
- }
105
-
106
- .meow_IconButton_D3j_9q {
107
- box-sizing: border-box;
108
- border: 1px solid var(--meowdown-border);
109
- background: var(--meowdown-popover-bg);
110
- width: 1.6rem;
111
- height: 1.6rem;
112
- color: var(--meowdown-muted);
113
- cursor: pointer;
114
- border-radius: .35rem;
115
- justify-content: center;
116
- align-items: center;
117
- padding: 0;
118
- display: flex;
119
-
120
- &:hover, &[data-popup-open] {
121
- color: var(--meowdown-heading);
122
- }
123
-
124
- &[data-copied] {
125
- color: var(--meowdown-accent);
126
- }
127
-
128
- & svg {
129
- width: .85rem;
130
- height: .85rem;
99
+ & .meowdown-icon {
100
+ width: .875rem;
101
+ height: .875rem;
131
102
  display: block;
132
103
  }
133
104
  }
134
105
 
135
- .meow_Positioner_D3j_9q {
136
- z-index: 50;
137
- outline: none;
138
- }
139
-
140
106
  .meow_Popup_D3j_9q {
141
- box-sizing: border-box;
142
- max-height: min(var(--available-height), 18rem);
143
- border: 1px solid var(--meowdown-border);
144
- background: var(--meowdown-popover-bg);
145
107
  width: 14rem;
146
- color: var(--meowdown-text);
147
- transform-origin: var(--transform-origin);
148
- border-radius: .5rem;
149
- flex-direction: column;
150
- font-family: ui-sans-serif, system-ui, sans-serif;
151
- font-size: .8rem;
152
- transition: opacity .1s, scale .1s;
153
- display: flex;
154
- box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
155
-
156
- @media (prefers-reduced-motion: reduce) {
157
- transition: none;
158
- }
159
-
160
- &[data-starting-style], &[data-ending-style] {
161
- opacity: 0;
162
- scale: .95;
163
- }
164
- }
165
-
166
- .meow_Menu_D3j_9q {
167
- outline: none;
168
- width: auto;
169
- min-width: 10rem;
170
- padding: .25rem;
171
- }
172
-
173
- .meow_MenuItem_D3j_9q {
174
- cursor: pointer;
175
- border-radius: .35rem;
176
- outline: none;
177
- align-items: center;
178
- gap: .5rem;
179
- padding: .3rem .5rem;
180
- display: flex;
181
-
182
- &[data-highlighted] {
183
- background: color-mix(in oklab, var(--meowdown-accent) 14%, transparent);
184
- color: var(--meowdown-heading);
185
- }
186
-
187
- & svg {
188
- width: .9rem;
189
- height: .9rem;
190
- color: var(--meowdown-muted);
191
- display: block;
192
- }
108
+ min-width: 0;
109
+ max-height: min(var(--available-height), 18rem);
110
+ padding: 0;
193
111
  }
194
112
 
195
113
  .meow_SearchRow_D3j_9q {
@@ -237,33 +155,15 @@
237
155
  }
238
156
 
239
157
  .meow_Item_D3j_9q {
240
- box-sizing: border-box;
241
- cursor: pointer;
242
- border-radius: .35rem;
243
- outline: none;
244
158
  grid-template-columns: 1rem 1fr;
245
- align-items: center;
246
159
  gap: .4rem;
247
- padding: .3rem .5rem .3rem .3rem;
160
+ padding-left: .3rem;
248
161
  scroll-margin: .25rem;
249
162
  display: grid;
250
-
251
- &[data-highlighted] {
252
- background: color-mix(in oklab, var(--meowdown-accent) 14%, transparent);
253
- color: var(--meowdown-heading);
254
- }
255
163
  }
256
164
 
257
165
  .meow_ItemIndicator_D3j_9q {
258
- color: var(--meowdown-accent);
259
166
  grid-column: 1;
260
- display: flex;
261
-
262
- & svg {
263
- width: .9rem;
264
- height: .9rem;
265
- display: block;
266
- }
267
167
  }
268
168
 
269
169
  .meow_ItemText_D3j_9q {
@@ -323,7 +223,7 @@
323
223
  background: var(--meowdown-popover-hover-bg);
324
224
  }
325
225
 
326
- & svg {
226
+ & .meowdown-icon {
327
227
  opacity: .65;
328
228
  width: 1.25rem;
329
229
  height: 1.25rem;
@@ -417,7 +317,7 @@
417
317
  background: var(--meowdown-popover-hover-bg);
418
318
  }
419
319
 
420
- & svg {
320
+ & .meowdown-icon {
421
321
  width: 1rem;
422
322
  height: 1rem;
423
323
  }
@@ -439,7 +339,7 @@
439
339
  display: flex;
440
340
  overflow: hidden;
441
341
 
442
- & img, & svg {
342
+ & img, & .meowdown-icon {
443
343
  object-fit: contain;
444
344
  width: 1.25rem;
445
345
  height: 1.25rem;
@@ -492,13 +392,13 @@
492
392
  padding: .375rem .5rem .375rem .75rem;
493
393
  display: flex;
494
394
 
495
- & > svg {
395
+ & > .meowdown-icon {
496
396
  width: .875rem;
497
397
  height: .875rem;
498
398
  color: var(--meowdown-accent);
499
399
  }
500
400
 
501
- & > span {
401
+ & > span:not(.meowdown-icon) {
502
402
  flex: 1;
503
403
  min-width: 0;
504
404
  font-size: .8125rem;
@@ -885,7 +785,7 @@
885
785
  background: var(--meowdown-popover-hover-bg);
886
786
  }
887
787
 
888
- & svg {
788
+ & .meowdown-icon {
889
789
  width: .875rem;
890
790
  height: .875rem;
891
791
  }
@@ -1036,7 +936,7 @@
1036
936
  background: var(--meowdown-popover-hover-bg);
1037
937
  }
1038
938
 
1039
- & svg {
939
+ & .meowdown-icon {
1040
940
  width: 1.25rem;
1041
941
  height: 1.25rem;
1042
942
  display: block;
@@ -1114,7 +1014,7 @@
1114
1014
  font-size: .75rem;
1115
1015
  }
1116
1016
 
1117
- & svg {
1017
+ & .meowdown-icon {
1118
1018
  width: 1rem;
1119
1019
  height: 1rem;
1120
1020
  color: var(--meowdown-muted);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meowdown/react",
3
3
  "type": "module",
4
- "version": "0.84.0",
4
+ "version": "0.85.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -22,8 +22,8 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "@base-ui/react": "^1.9.0",
25
- "@meowdown/core": "0.83.3",
26
- "@meowdown/embed": "0.3.2",
25
+ "@meowdown/core": "0.84.0",
26
+ "@meowdown/embed": "0.3.3",
27
27
  "@meowdown/markdown": "0.78.0",
28
28
  "@ocavue/utils": "^1.11.0",
29
29
  "@post-embed/types": "^0.5.0",
@@ -34,7 +34,6 @@
34
34
  "clsx": "^2.1.1",
35
35
  "dompurify": "^3.4.17",
36
36
  "github-slugger": "^2.0.0",
37
- "lucide-react": "^1.47.0",
38
37
  "pele": "^1.13.0",
39
38
  "react-property": "^2.0.2"
40
39
  },