hds-web 1.4.4 → 1.4.6
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 +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/HDS/components/Avatars/hasConAv.js +1 -1
- package/src/HDS/components/Avatars/profileAvatar.js +4 -2
- package/src/HDS/components/Cards/Misc/talkcard2.js +3 -2
- package/src/HDS/components/Cards/TalkDetailCard/talkDetailCard.js +1 -0
- package/src/HDS/components/Tabs/tab.js +2 -2
- package/src/styles/tailwind.css +32 -116
- package/tailwind.config.js +1 -1
package/package.json
CHANGED
@@ -13,7 +13,7 @@ export default function HasConAvatar({ name, designation, size, imageUrl }) {
|
|
13
13
|
</div>
|
14
14
|
<div className='relative pt-6 mb-m:pt-0 pl-6 mb-m:pl-0 mb-m:self-center'>
|
15
15
|
<img
|
16
|
-
className={`inline-block max-[
|
16
|
+
className={`inline-block max-[399px]:bg-blue-300 rounded-r-xl max-[399px]:rounded-full w-[60px] mb-m:min-w-[144px] mb-m: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> */}
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { Icon } from '../common-components/Icon';
|
4
4
|
import { Typography } from '../../foundation/Typography';
|
5
|
+
import { HDSColor } from '../../foundation/ColorPalette';
|
5
6
|
const imgSizes = {
|
6
7
|
'xs': 'h-8 w-8',
|
7
8
|
'sm': 'h-10 w-10',
|
@@ -13,18 +14,19 @@ const AvatarVariant = {
|
|
13
14
|
'square': 'rounded-lg',
|
14
15
|
}
|
15
16
|
|
16
|
-
export default function ProfileAvatar({ name, designation, size, imageUrl, avatarVariant }) {
|
17
|
+
export default function ProfileAvatar({avatarBgColor, name, designation, size, imageUrl, avatarVariant }) {
|
17
18
|
const imgSizeClass = imgSizes[size] || imgSizes.md;
|
18
19
|
const avatarVariantClass = AvatarVariant[avatarVariant] || AvatarVariant.circular;
|
19
20
|
const defaultAvatarIcon = "user03";
|
20
21
|
const hasImageUrl = imageUrl && imageUrl.length > 0;
|
22
|
+
|
21
23
|
return (
|
22
24
|
<div className="group block flex-shrink-0">
|
23
25
|
<div className="flex items-center">
|
24
26
|
<div>
|
25
27
|
{hasImageUrl ? (
|
26
28
|
<img
|
27
|
-
className={`${imgSizeClass} ${avatarVariantClass} rounded inline-block`}
|
29
|
+
className={`${imgSizeClass} ${avatarVariantClass} ${HDSColor(avatarBgColor)} rounded inline-block`}
|
28
30
|
src={imageUrl}
|
29
31
|
/>
|
30
32
|
) : (
|
@@ -38,7 +38,7 @@ export default function TalkCard2(props) {
|
|
38
38
|
}
|
39
39
|
|
40
40
|
</div>
|
41
|
-
<div className="tb-l:w-[380px] db:w-[520px]
|
41
|
+
<div className="tb-l:w-[380px] db:w-[520px] flex flex-col tb:justify-between">
|
42
42
|
<div>
|
43
43
|
<Typography className='my-2 text-blue-800' textStyle='h5'>{props.title}</Typography>
|
44
44
|
{props.para &&
|
@@ -62,7 +62,7 @@ export default function TalkCard2(props) {
|
|
62
62
|
size='md'
|
63
63
|
rightAnimatedArrow={true}
|
64
64
|
rightAnimatedArrowColor='#3970FD'
|
65
|
-
className='mt-
|
65
|
+
className='mt-2'
|
66
66
|
btnTextColorClass='text-blue-500'
|
67
67
|
animatedHoverStroke='stroke-blue-500'
|
68
68
|
/>
|
@@ -84,6 +84,7 @@ export default function TalkCard2(props) {
|
|
84
84
|
size='md'
|
85
85
|
designation={value.designation}
|
86
86
|
imageUrl={value.imageUrl}
|
87
|
+
avatarBgColor={value.avatarBgColor}
|
87
88
|
/>
|
88
89
|
</div>
|
89
90
|
|
@@ -36,7 +36,7 @@ export default function Tab(props) {
|
|
36
36
|
href="#"
|
37
37
|
className={`px-3 py-1 font-medium text-sm rounded-full ${
|
38
38
|
activeTab === tab
|
39
|
-
? ' first:bg-blue-500 text-neutral-0 transition-all
|
39
|
+
? ' first:bg-blue-500 text-neutral-0 transition-all'
|
40
40
|
: 'text-neutral-500 transition-all flex-nowrap '
|
41
41
|
}`}
|
42
42
|
aria-current={activeTab === tab ? 'page' : undefined}
|
@@ -47,7 +47,7 @@ export default function Tab(props) {
|
|
47
47
|
))}
|
48
48
|
<span
|
49
49
|
ref={pillRef}
|
50
|
-
className="absolute left-0 z-[1] bg-blue-500 rounded-full transition-all ease-in-out duration-
|
50
|
+
className="absolute left-0 z-[1] bg-blue-500 rounded-full transition-all ease-in-out duration-300"
|
51
51
|
style={{
|
52
52
|
left: `${activeTab.index * 100}%`,
|
53
53
|
width: `${activeTab.width}px`, // Use the width of the clicked tab
|
package/src/styles/tailwind.css
CHANGED
@@ -735,9 +735,9 @@ select {
|
|
735
735
|
}
|
736
736
|
}
|
737
737
|
|
738
|
-
@media (min-width:
|
738
|
+
@media (min-width: 400px) {
|
739
739
|
.container {
|
740
|
-
max-width:
|
740
|
+
max-width: 400px;
|
741
741
|
}
|
742
742
|
}
|
743
743
|
|
@@ -1416,10 +1416,6 @@ select {
|
|
1416
1416
|
max-height: 100%;
|
1417
1417
|
}
|
1418
1418
|
|
1419
|
-
.min-h-\[120px\] {
|
1420
|
-
min-height: 120px;
|
1421
|
-
}
|
1422
|
-
|
1423
1419
|
.w-1\/2 {
|
1424
1420
|
width: 50%;
|
1425
1421
|
}
|
@@ -1524,10 +1520,6 @@ select {
|
|
1524
1520
|
width: 90%;
|
1525
1521
|
}
|
1526
1522
|
|
1527
|
-
.w-\[9rem\] {
|
1528
|
-
width: 9rem;
|
1529
|
-
}
|
1530
|
-
|
1531
1523
|
.w-auto {
|
1532
1524
|
width: auto;
|
1533
1525
|
}
|
@@ -1546,18 +1538,10 @@ select {
|
|
1546
1538
|
width: 100vw;
|
1547
1539
|
}
|
1548
1540
|
|
1549
|
-
.w-16 {
|
1550
|
-
width: 4rem;
|
1551
|
-
}
|
1552
|
-
|
1553
1541
|
.min-w-\[11\.5rem\] {
|
1554
1542
|
min-width: 11.5rem;
|
1555
1543
|
}
|
1556
1544
|
|
1557
|
-
.min-w-\[144px\] {
|
1558
|
-
min-width: 144px;
|
1559
|
-
}
|
1560
|
-
|
1561
1545
|
.min-w-\[18rem\] {
|
1562
1546
|
min-width: 18rem;
|
1563
1547
|
}
|
@@ -2031,18 +2015,6 @@ select {
|
|
2031
2015
|
border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
|
2032
2016
|
}
|
2033
2017
|
|
2034
|
-
.divide-x-2 > :not([hidden]) ~ :not([hidden]) {
|
2035
|
-
--tw-divide-x-reverse: 0;
|
2036
|
-
border-right-width: calc(2px * var(--tw-divide-x-reverse));
|
2037
|
-
border-left-width: calc(2px * calc(1 - var(--tw-divide-x-reverse)));
|
2038
|
-
}
|
2039
|
-
|
2040
|
-
.divide-y-2 > :not([hidden]) ~ :not([hidden]) {
|
2041
|
-
--tw-divide-y-reverse: 0;
|
2042
|
-
border-top-width: calc(2px * calc(1 - var(--tw-divide-y-reverse)));
|
2043
|
-
border-bottom-width: calc(2px * var(--tw-divide-y-reverse));
|
2044
|
-
}
|
2045
|
-
|
2046
2018
|
.divide-blue-600\/10 > :not([hidden]) ~ :not([hidden]) {
|
2047
2019
|
border-color: rgb(30 86 227 / 0.1);
|
2048
2020
|
}
|
@@ -2070,10 +2042,6 @@ select {
|
|
2070
2042
|
align-self: flex-end;
|
2071
2043
|
}
|
2072
2044
|
|
2073
|
-
.self-center {
|
2074
|
-
align-self: center;
|
2075
|
-
}
|
2076
|
-
|
2077
2045
|
.overflow-auto {
|
2078
2046
|
overflow: auto;
|
2079
2047
|
}
|
@@ -2178,6 +2146,11 @@ select {
|
|
2178
2146
|
border-bottom-right-radius: 0.375rem;
|
2179
2147
|
}
|
2180
2148
|
|
2149
|
+
.rounded-r-xl {
|
2150
|
+
border-top-right-radius: 0.75rem;
|
2151
|
+
border-bottom-right-radius: 0.75rem;
|
2152
|
+
}
|
2153
|
+
|
2181
2154
|
.rounded-t-3xl {
|
2182
2155
|
border-top-left-radius: 1.5rem;
|
2183
2156
|
border-top-right-radius: 1.5rem;
|
@@ -2188,16 +2161,6 @@ select {
|
|
2188
2161
|
border-top-right-radius: 0.375rem;
|
2189
2162
|
}
|
2190
2163
|
|
2191
|
-
.rounded-l-xl {
|
2192
|
-
border-top-left-radius: 0.75rem;
|
2193
|
-
border-bottom-left-radius: 0.75rem;
|
2194
|
-
}
|
2195
|
-
|
2196
|
-
.rounded-r-xl {
|
2197
|
-
border-top-right-radius: 0.75rem;
|
2198
|
-
border-bottom-right-radius: 0.75rem;
|
2199
|
-
}
|
2200
|
-
|
2201
2164
|
.rounded-tl-2xl {
|
2202
2165
|
border-top-left-radius: 1rem;
|
2203
2166
|
}
|
@@ -2369,11 +2332,6 @@ select {
|
|
2369
2332
|
border-top-color: rgb(236 237 240 / var(--tw-border-opacity));
|
2370
2333
|
}
|
2371
2334
|
|
2372
|
-
.border-b-neutral-200 {
|
2373
|
-
--tw-border-opacity: 1;
|
2374
|
-
border-bottom-color: rgb(229 231 235 / var(--tw-border-opacity));
|
2375
|
-
}
|
2376
|
-
|
2377
2335
|
.bg-amber-100 {
|
2378
2336
|
--tw-bg-opacity: 1;
|
2379
2337
|
background-color: rgb(255 243 212 / var(--tw-bg-opacity));
|
@@ -5370,11 +5328,6 @@ select {
|
|
5370
5328
|
padding-bottom: 1.625rem;
|
5371
5329
|
}
|
5372
5330
|
|
5373
|
-
.py-\[30px\] {
|
5374
|
-
padding-top: 30px;
|
5375
|
-
padding-bottom: 30px;
|
5376
|
-
}
|
5377
|
-
|
5378
5331
|
.pb-10 {
|
5379
5332
|
padding-bottom: 2.5rem;
|
5380
5333
|
}
|
@@ -5443,10 +5396,6 @@ select {
|
|
5443
5396
|
padding-left: 1.75rem;
|
5444
5397
|
}
|
5445
5398
|
|
5446
|
-
.pl-8 {
|
5447
|
-
padding-left: 2rem;
|
5448
|
-
}
|
5449
|
-
|
5450
5399
|
.pr-10 {
|
5451
5400
|
padding-right: 2.5rem;
|
5452
5401
|
}
|
@@ -5499,6 +5448,10 @@ select {
|
|
5499
5448
|
padding-top: 4rem;
|
5500
5449
|
}
|
5501
5450
|
|
5451
|
+
.pt-3 {
|
5452
|
+
padding-top: 0.75rem;
|
5453
|
+
}
|
5454
|
+
|
5502
5455
|
.pt-4 {
|
5503
5456
|
padding-top: 1rem;
|
5504
5457
|
}
|
@@ -5511,10 +5464,6 @@ select {
|
|
5511
5464
|
padding-top: 2rem;
|
5512
5465
|
}
|
5513
5466
|
|
5514
|
-
.pt-3 {
|
5515
|
-
padding-top: 0.75rem;
|
5516
|
-
}
|
5517
|
-
|
5518
5467
|
.text-left {
|
5519
5468
|
text-align: left;
|
5520
5469
|
}
|
@@ -6496,10 +6445,6 @@ select {
|
|
6496
6445
|
transition-delay: 300ms;
|
6497
6446
|
}
|
6498
6447
|
|
6499
|
-
.delay-500 {
|
6500
|
-
transition-delay: 500ms;
|
6501
|
-
}
|
6502
|
-
|
6503
6448
|
.duration-100 {
|
6504
6449
|
transition-duration: 100ms;
|
6505
6450
|
}
|
@@ -6520,10 +6465,6 @@ select {
|
|
6520
6465
|
transition-duration: 500ms;
|
6521
6466
|
}
|
6522
6467
|
|
6523
|
-
.duration-700 {
|
6524
|
-
transition-duration: 700ms;
|
6525
|
-
}
|
6526
|
-
|
6527
6468
|
.ease-in {
|
6528
6469
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
6529
6470
|
}
|
@@ -8096,24 +8037,29 @@ select {
|
|
8096
8037
|
}
|
8097
8038
|
}
|
8098
8039
|
|
8099
|
-
@media (max-width:
|
8100
|
-
.max-\[
|
8040
|
+
@media (max-width: 419px) {
|
8041
|
+
.max-\[419px\]\:rounded-full {
|
8101
8042
|
border-radius: 9999px;
|
8102
8043
|
}
|
8044
|
+
|
8045
|
+
.max-\[419px\]\:bg-blue-300 {
|
8046
|
+
--tw-bg-opacity: 1;
|
8047
|
+
background-color: rgb(198 214 255 / var(--tw-bg-opacity));
|
8048
|
+
}
|
8103
8049
|
}
|
8104
8050
|
|
8105
|
-
@media (max-width:
|
8106
|
-
.max-\[
|
8051
|
+
@media (max-width: 399px) {
|
8052
|
+
.max-\[399px\]\:rounded-full {
|
8107
8053
|
border-radius: 9999px;
|
8108
8054
|
}
|
8109
8055
|
|
8110
|
-
.max-\[
|
8056
|
+
.max-\[399px\]\:bg-blue-300 {
|
8111
8057
|
--tw-bg-opacity: 1;
|
8112
|
-
background-color: rgb(
|
8058
|
+
background-color: rgb(198 214 255 / var(--tw-bg-opacity));
|
8113
8059
|
}
|
8114
8060
|
}
|
8115
8061
|
|
8116
|
-
@media (min-width:
|
8062
|
+
@media (min-width: 400px) {
|
8117
8063
|
.mb-m\:flex {
|
8118
8064
|
display: flex;
|
8119
8065
|
}
|
@@ -8146,30 +8092,6 @@ select {
|
|
8146
8092
|
align-self: center;
|
8147
8093
|
}
|
8148
8094
|
|
8149
|
-
.mb-m\:rounded {
|
8150
|
-
border-radius: 0.25rem;
|
8151
|
-
}
|
8152
|
-
|
8153
|
-
.mb-m\:rounded-l-2xl {
|
8154
|
-
border-top-left-radius: 1rem;
|
8155
|
-
border-bottom-left-radius: 1rem;
|
8156
|
-
}
|
8157
|
-
|
8158
|
-
.mb-m\:rounded-r-2xl {
|
8159
|
-
border-top-right-radius: 1rem;
|
8160
|
-
border-bottom-right-radius: 1rem;
|
8161
|
-
}
|
8162
|
-
|
8163
|
-
.mb-m\:rounded-r-xl {
|
8164
|
-
border-top-right-radius: 0.75rem;
|
8165
|
-
border-bottom-right-radius: 0.75rem;
|
8166
|
-
}
|
8167
|
-
|
8168
|
-
.mb-m\:rounded-l-xl {
|
8169
|
-
border-top-left-radius: 0.75rem;
|
8170
|
-
border-bottom-left-radius: 0.75rem;
|
8171
|
-
}
|
8172
|
-
|
8173
8095
|
.mb-m\:px-5 {
|
8174
8096
|
padding-left: 1.25rem;
|
8175
8097
|
padding-right: 1.25rem;
|
@@ -8189,12 +8111,6 @@ select {
|
|
8189
8111
|
}
|
8190
8112
|
}
|
8191
8113
|
|
8192
|
-
@media (min-width: 450px) {
|
8193
|
-
.min-\[450px\]\:rounded-full {
|
8194
|
-
border-radius: 9999px;
|
8195
|
-
}
|
8196
|
-
}
|
8197
|
-
|
8198
8114
|
@media (min-width: 600px) {
|
8199
8115
|
.tb\:mb-16 {
|
8200
8116
|
margin-bottom: 4rem;
|
@@ -8942,20 +8858,24 @@ select {
|
|
8942
8858
|
padding: 2.5rem;
|
8943
8859
|
}
|
8944
8860
|
|
8945
|
-
.tb-l\:py-12 {
|
8946
|
-
padding-top: 3rem;
|
8947
|
-
padding-bottom: 3rem;
|
8948
|
-
}
|
8949
|
-
|
8950
8861
|
.tb-l\:px-8 {
|
8951
8862
|
padding-left: 2rem;
|
8952
8863
|
padding-right: 2rem;
|
8953
8864
|
}
|
8954
8865
|
|
8866
|
+
.tb-l\:py-12 {
|
8867
|
+
padding-top: 3rem;
|
8868
|
+
padding-bottom: 3rem;
|
8869
|
+
}
|
8870
|
+
|
8955
8871
|
.tb-l\:pb-12 {
|
8956
8872
|
padding-bottom: 3rem;
|
8957
8873
|
}
|
8958
8874
|
|
8875
|
+
.tb-l\:pb-6 {
|
8876
|
+
padding-bottom: 1.5rem;
|
8877
|
+
}
|
8878
|
+
|
8959
8879
|
.tb-l\:pl-8 {
|
8960
8880
|
padding-left: 2rem;
|
8961
8881
|
}
|
@@ -8964,10 +8884,6 @@ select {
|
|
8964
8884
|
padding-top: 3rem;
|
8965
8885
|
}
|
8966
8886
|
|
8967
|
-
.tb-l\:pb-6 {
|
8968
|
-
padding-bottom: 1.5rem;
|
8969
|
-
}
|
8970
|
-
|
8971
8887
|
.tb-l\:text-left {
|
8972
8888
|
text-align: left;
|
8973
8889
|
}
|