@moontra/moonui 6.12.0 → 6.14.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.
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.global.js +2 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/dist/lib/theme.global.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/__tests__/avatar-image-alt.test.tsx +54 -0
- package/src/components/ui/__tests__/progress-accessible-name.test.tsx +65 -0
- package/src/components/ui/avatar.tsx +16 -1
- package/src/components/ui/progress.tsx +14 -0
package/dist/index.d.mts
CHANGED
|
@@ -88,6 +88,20 @@ declare const avatarVariants: (props?: {
|
|
|
88
88
|
interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
|
|
89
89
|
}
|
|
90
90
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
91
|
+
/**
|
|
92
|
+
* #345: `alt` verilmezse BOŞ STRING basılır — yani görsel "dekoratif" işaretlenir.
|
|
93
|
+
*
|
|
94
|
+
* Bu, `alt` özniteliğini tamamen atlamaktan farklıdır: öznitelik yokken axe
|
|
95
|
+
* `image-alt` (critical) ihlali sayar ve ekran okuyucu dosya adını okumaya kalkar.
|
|
96
|
+
*
|
|
97
|
+
* Neden ADIN kendisi varsayılan yapılmadı: avatar neredeyse her zaman kişinin adının
|
|
98
|
+
* YANINDA durur (kanban aktivite akışı, timeline, activity-feed hepsi böyle). Adı
|
|
99
|
+
* `alt`a da koymak aynı bilgiyi iki kez duyurur — axe bunu ayrı bir kural olarak
|
|
100
|
+
* (`image-redundant-alt`) ihlal sayar. Doğru varsayılan "dekoratif"tir.
|
|
101
|
+
*
|
|
102
|
+
* Avatar TEK BAŞINA kimlik taşıyorsa (yanında ad metni yoksa — ör. bir avatar grubu)
|
|
103
|
+
* tüketici `alt={name}` vermelidir; aşağıdaki varsayılan onu ezmez.
|
|
104
|
+
*/
|
|
91
105
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
92
106
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
93
107
|
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,20 @@ declare const avatarVariants: (props?: {
|
|
|
88
88
|
interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
|
|
89
89
|
}
|
|
90
90
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
91
|
+
/**
|
|
92
|
+
* #345: `alt` verilmezse BOŞ STRING basılır — yani görsel "dekoratif" işaretlenir.
|
|
93
|
+
*
|
|
94
|
+
* Bu, `alt` özniteliğini tamamen atlamaktan farklıdır: öznitelik yokken axe
|
|
95
|
+
* `image-alt` (critical) ihlali sayar ve ekran okuyucu dosya adını okumaya kalkar.
|
|
96
|
+
*
|
|
97
|
+
* Neden ADIN kendisi varsayılan yapılmadı: avatar neredeyse her zaman kişinin adının
|
|
98
|
+
* YANINDA durur (kanban aktivite akışı, timeline, activity-feed hepsi böyle). Adı
|
|
99
|
+
* `alt`a da koymak aynı bilgiyi iki kez duyurur — axe bunu ayrı bir kural olarak
|
|
100
|
+
* (`image-redundant-alt`) ihlal sayar. Doğru varsayılan "dekoratif"tir.
|
|
101
|
+
*
|
|
102
|
+
* Avatar TEK BAŞINA kimlik taşıyorsa (yanında ad metni yoksa — ör. bir avatar grubu)
|
|
103
|
+
* tüketici `alt={name}` vermelidir; aşağıdaki varsayılan onu ezmez.
|
|
104
|
+
*/
|
|
91
105
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
92
106
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
93
107
|
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|