@delightui/components 0.1.28 → 0.1.30
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/cjs/components/atoms/Image/image.types.d.ts +5 -0
- package/dist/cjs/library.css +20 -6
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Image/image.types.d.ts +5 -0
- package/dist/esm/library.css +20 -6
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -30,4 +30,9 @@ export interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
30
30
|
* Additional class for styling.
|
|
31
31
|
*/
|
|
32
32
|
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The aspect ratio of the image.
|
|
35
|
+
* @default natural aspect ratio of the image
|
|
36
|
+
*/
|
|
37
|
+
aspectRatio?: string;
|
|
33
38
|
}
|
package/dist/esm/library.css
CHANGED
|
@@ -80,24 +80,38 @@
|
|
|
80
80
|
}
|
|
81
81
|
.image-module_image__FOVdK {
|
|
82
82
|
display: flex;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
height:
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
width: auto;
|
|
86
|
+
height: auto;
|
|
87
|
+
flex-grow: 1;
|
|
87
88
|
flex-shrink: 0;
|
|
88
89
|
}
|
|
90
|
+
.image-module_image__FOVdK .image-module_imageContainer__W7aeo {
|
|
91
|
+
display: flex;
|
|
92
|
+
width: auto;
|
|
93
|
+
height: auto;
|
|
94
|
+
}
|
|
89
95
|
.image-module_image__FOVdK .image-module_content__WqMqe {
|
|
90
96
|
width: 100%;
|
|
91
97
|
height: 100%;
|
|
92
98
|
}
|
|
99
|
+
.image-module_image__FOVdK .image-module_aspect__4e2hu {
|
|
100
|
+
position: relative;
|
|
101
|
+
width: 100%;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
}
|
|
93
104
|
.image-module_image__FOVdK .image-module_loadingIcon__b1Vun {
|
|
94
105
|
--spinner__width: 2rem;
|
|
95
106
|
--spinner__height: 2rem;
|
|
96
107
|
--spinner__border-width: 3px;
|
|
97
108
|
}
|
|
98
109
|
.image-module_fit__-ZO7j {
|
|
99
|
-
|
|
100
|
-
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
left: 0;
|
|
113
|
+
-o-object-fit: cover;
|
|
114
|
+
object-fit: cover;
|
|
101
115
|
}
|
|
102
116
|
.image-module_fill__PWlRV {
|
|
103
117
|
-o-object-fit: fill;
|