hds-web 1.4.1 → 1.4.3
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.css +2 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/HDS/components/Avatars/hasConAv.js +2 -2
- package/src/HDS/components/Carousels/carouselCard.js +1 -1
- package/src/styles/tailwind.css +24 -0
- package/tailwind.config.js +1 -0
package/package.json
CHANGED
@@ -7,13 +7,13 @@ export default function HasConAvatar({ name, designation, size, imageUrl }) {
|
|
7
7
|
return (
|
8
8
|
<div className={`tb:max-w-[289px] group rounded-3xl flex items-center justify-between bg-neutral-0 tb:inline-flex tb:flex-col shadow tb:min-w-[18rem]`}>
|
9
9
|
|
10
|
-
<div className="px-5 py-[30px] tb:p-0 text-left tb:flex-col min-h-[
|
10
|
+
<div className="px-5 py-[30px] tb:p-0 text-left tb:flex-col min-h-[120px] tb:flex tb:items-center tb:px-8 tb:pb-8 tb:mt-8 tb:ml-0 tb:text-center">
|
11
11
|
<div className=' text-hds-m-body1c-bold tb:text-hds-t-h5 db:text-hds-d-h5 text-blue-400'>{name}</div>
|
12
12
|
<div className=' text-hds-m-body3c-medium tb:text-hds-t-h7 db:text-hds-d-h7 text-blue-800 uppercase'>{designation}</div>
|
13
13
|
</div>
|
14
14
|
<div className='relative self-center'>
|
15
15
|
<img
|
16
|
-
className={`inline-block min-w-[144px] w-[9rem] tb:min-w-[18rem] tb:rounded border-neutral-0
|
16
|
+
className={`inline-block min-w-[144px] w-[9rem] tb:min-w-[18rem] tb:rounded-3xl border-neutral-0`}
|
17
17
|
src={imageUrl}
|
18
18
|
/>
|
19
19
|
{/* <div className="absolute tb-l:rounded-b-3xl inset-0 group-hover:bg-gradient-to-t group-hover:from-amber-200 group-hover:to-transparent group-hover:opacity-30" ></div> */}
|
@@ -152,7 +152,7 @@ export default function CarouselCard(props) {
|
|
152
152
|
|
153
153
|
{props.cards.map((item, i) => (
|
154
154
|
// <div className="max-[1140px]:snap-always tb:snap-always mx-5 max-[1140px]:shrink-0" key={i} ref={refs[i]}>
|
155
|
-
<div className="
|
155
|
+
<div className=" db:snap-center snap-center tb-m:snap-start mx-5 shrink-0" key={i} ref={refs[i]}>
|
156
156
|
<div className="w-full select-none rounded-3xl object-contain">
|
157
157
|
{React.createElement(props.component, item)}
|
158
158
|
</div>
|
package/src/styles/tailwind.css
CHANGED
@@ -753,6 +753,12 @@ select {
|
|
753
753
|
}
|
754
754
|
}
|
755
755
|
|
756
|
+
@media (min-width: 800px) {
|
757
|
+
.container {
|
758
|
+
max-width: 800px;
|
759
|
+
}
|
760
|
+
}
|
761
|
+
|
756
762
|
@media (min-width: 905px) {
|
757
763
|
.container {
|
758
764
|
max-width: 905px;
|
@@ -1408,6 +1414,10 @@ select {
|
|
1408
1414
|
min-height: 116px;
|
1409
1415
|
}
|
1410
1416
|
|
1417
|
+
.min-h-\[120px\] {
|
1418
|
+
min-height: 120px;
|
1419
|
+
}
|
1420
|
+
|
1411
1421
|
.w-1\/2 {
|
1412
1422
|
width: 50%;
|
1413
1423
|
}
|
@@ -8221,6 +8231,10 @@ select {
|
|
8221
8231
|
border-radius: 0.25rem;
|
8222
8232
|
}
|
8223
8233
|
|
8234
|
+
.tb\:rounded-3xl {
|
8235
|
+
border-radius: 1.5rem;
|
8236
|
+
}
|
8237
|
+
|
8224
8238
|
.tb\:rounded-e-none {
|
8225
8239
|
border-start-end-radius: 0px;
|
8226
8240
|
border-end-end-radius: 0px;
|
@@ -8657,6 +8671,12 @@ select {
|
|
8657
8671
|
}
|
8658
8672
|
}
|
8659
8673
|
|
8674
|
+
@media (min-width: 800px) {
|
8675
|
+
.tb-m\:snap-start {
|
8676
|
+
scroll-snap-align: start;
|
8677
|
+
}
|
8678
|
+
}
|
8679
|
+
|
8660
8680
|
@media (min-width: 905px) {
|
8661
8681
|
.tb-l\:mb-0 {
|
8662
8682
|
margin-bottom: 0px;
|
@@ -8924,6 +8944,10 @@ select {
|
|
8924
8944
|
max-width: 625px;
|
8925
8945
|
}
|
8926
8946
|
|
8947
|
+
.db\:snap-center {
|
8948
|
+
scroll-snap-align: center;
|
8949
|
+
}
|
8950
|
+
|
8927
8951
|
.db\:grid-cols-4 {
|
8928
8952
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
8929
8953
|
}
|