@cognitap/radiant 0.0.85 → 0.0.86
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/CHANGELOG.md +6 -0
- package/dist/library/components/Dropzone/Dropzone.d.ts.map +1 -1
- package/dist/library/components/Dropzone/Dropzone.js +4 -3
- package/dist/library/components/Dropzone/Dropzone.js.map +1 -1
- package/dist/library/components/Spoiler/Spoiler.d.ts.map +1 -1
- package/dist/library/components/Spoiler/Spoiler.js +1 -1
- package/dist/library/components/Spoiler/Spoiler.js.map +1 -1
- package/dist/library/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/Dropzone/Dropzone.tsx +6 -4
- package/src/components/Spoiler/Spoiler.tsx +2 -1
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
/* oxlint-disable jsx-a11y/prefer-tag-over-role -- Native form reset must leave the React-managed status children in place. */
|
|
3
4
|
import { useId, useRef, useState, type DragEvent } from 'react'
|
|
4
5
|
import { cn } from 'cn'
|
|
5
6
|
import { joinIds } from '../../internal/ids.js'
|
|
@@ -182,8 +183,8 @@ export function Dropzone({
|
|
|
182
183
|
className="disabled:cursor-not-allowed"
|
|
183
184
|
parts={{
|
|
184
185
|
wrapper: { className: 'absolute inset-0 z-10' },
|
|
185
|
-
trigger: { className: 'hidden' },
|
|
186
|
-
files: { className: 'hidden' }
|
|
186
|
+
trigger: { className: '[&[aria-hidden]]:hidden' },
|
|
187
|
+
files: { className: '[&[aria-hidden]]:hidden' }
|
|
187
188
|
}}
|
|
188
189
|
/>
|
|
189
190
|
<span
|
|
@@ -207,7 +208,8 @@ export function Dropzone({
|
|
|
207
208
|
{description}
|
|
208
209
|
</span>
|
|
209
210
|
)}
|
|
210
|
-
<
|
|
211
|
+
<div
|
|
212
|
+
role="status"
|
|
211
213
|
data-slot="dropzone-status"
|
|
212
214
|
className={cn('grid gap-1 text-xs [overflow-wrap:anywhere]', parts?.status?.className)}
|
|
213
215
|
style={parts?.status?.style}
|
|
@@ -224,7 +226,7 @@ export function Dropzone({
|
|
|
224
226
|
</span>
|
|
225
227
|
))}
|
|
226
228
|
{!selection && emptyText}
|
|
227
|
-
</
|
|
229
|
+
</div>
|
|
228
230
|
</div>
|
|
229
231
|
)
|
|
230
232
|
}
|
|
@@ -70,7 +70,8 @@ export function Spoiler({
|
|
|
70
70
|
>
|
|
71
71
|
<CollapsibleTrigger
|
|
72
72
|
data-slot="spoiler-trigger"
|
|
73
|
-
|
|
73
|
+
hidden={!overflows}
|
|
74
|
+
className={cn('row-start-2 py-2 [&[hidden]]:hidden', parts?.trigger?.className)}
|
|
74
75
|
style={parts?.trigger?.style}
|
|
75
76
|
>
|
|
76
77
|
{clipped ? showMoreLabel : showLessLabel}
|