hds-web 1.3.0 → 1.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -3,6 +3,7 @@ import { useState } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { Icon } from '../common-components/Icon';
5
5
  import {Typography} from '../../foundation/Typography'
6
+ import { HDSColor } from '../../foundation/ColorPalette';
6
7
  const sizeClasses = {
7
8
  sm: 'py-0.5 px-2 hds-d-body3c',
8
9
  default: 'py-1 px-3',
@@ -27,8 +28,10 @@ const colorVariants = {
27
28
  export default function Badge({
28
29
  leftIconVariant,
29
30
  leftIconColor,
31
+ leftIconColorClass,
30
32
  rightIconVariant,
31
33
  rightIconColor,
34
+ rightIconColorClass,
32
35
  size,
33
36
  children,
34
37
  color,
@@ -44,7 +47,7 @@ export default function Badge({
44
47
 
45
48
  return (
46
49
  <button
47
- className={`${sizeClasses[size]} ${
50
+ className={` cursor-default ${sizeClasses[size]} ${
48
51
  colorVariants[color]
49
52
  } inline-flex items-center rounded-full`}
50
53
  onClick={handleClick}
@@ -52,14 +55,14 @@ export default function Badge({
52
55
  >
53
56
  {leftIconVariant && leftIconVariant !== 'none' && (
54
57
  <div className='mr-1'>
55
- <Icon height={'h-4 w-4'} variant={leftIconVariant} strokeColor={leftIconColor} />
58
+ <Icon height={'h-4 w-4'} variant={leftIconVariant} strokeColor={leftIconColor} strokeClass={HDSColor(leftIconColorClass)} />
56
59
  </div>
57
60
  )}
58
61
  <Typography textStyle='body3c-medium'>{children}</Typography>
59
62
 
60
63
  {rightIconVariant && rightIconVariant !== 'none' && (
61
64
  <div className='ml-1'>
62
- <Icon height={'h-4'} variant={rightIconVariant} strokeColor={rightIconColor} />
65
+ <Icon height={'h-4'} variant={rightIconVariant} strokeColor={rightIconColor} rightIconColorClass={HDSColor(rightIconColorClass)} />
63
66
  </div>
64
67
  )}
65
68
  </button>
@@ -1,2 +1,3 @@
1
1
  export {default as TalkCard} from './talkCard';
2
+ export {default as TalkCard2} from './talkcard2';
2
3
  export {default as IconCard} from './iconCard';
@@ -29,11 +29,9 @@ export default function TalkCard(props) {
29
29
 
30
30
  {props.para &&
31
31
  <Typography
32
- className='line-clamp-3 text-neutral-700 [&>p]:pb-2 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-2 [&>ul>li]:last:pb-0'
33
- textStyle='body1'>
34
- <ReactMarkdown>
32
+ className='line-clamp-3 text-neutral-700'
33
+ textStyle='body1c'>
35
34
  {props.para}
36
- </ReactMarkdown>
37
35
  </Typography>}
38
36
 
39
37
  </div>
@@ -0,0 +1,112 @@
1
+ import React from "react";
2
+ import { Badges } from '../../BadgesCaption';
3
+ import { Typography } from '../../../foundation/Typography'
4
+ import { ProfileAvatar } from '../../Avatars'
5
+ import { Time } from "../../../helpers/Time";
6
+ import { HDSButton } from '../../Buttons'
7
+ import ReactMarkdown from "react-markdown";
8
+
9
+ export default function TalkCard2(props) {
10
+ let CardClass = ''
11
+ if (props.speakerSet === undefined) {
12
+ CardClass = 'tb-l:justify-center';
13
+ }
14
+ else CardClass = 'tb-l:justify-between';
15
+
16
+ return (
17
+
18
+ <div className="grid">
19
+ <div className={`flex flex-col tb-l:flex-row tb-l:justify-between `}>
20
+ <div className={"px-8 py-6 tb-l:border-r tb-l:border-r-neutral-200"}>
21
+ <div className="flex gap-2">
22
+ {props.badges &&
23
+ props.badges.map((value, index) => (
24
+ <div key={index} className='flex whitespace-nowrap'>
25
+ <Badges
26
+ size={value.size}
27
+ color={value.color}
28
+ leftIconVariant={value.leftIconVariant}
29
+ leftIconColor={value.leftIconColor}
30
+ leftIconColorClass={value.leftIconColorClass}
31
+ children={value.label}
32
+
33
+ />
34
+ </div>
35
+ ))
36
+ }
37
+
38
+ </div>
39
+ <div className="tb-l:w-[520px]">
40
+
41
+ <Typography className='my-2 text-blue-800' textStyle='h5'>{props.title}</Typography>
42
+
43
+ {props.para &&
44
+ <Typography
45
+ className='line-clamp-3 text-neutral-700'
46
+ textStyle='body1c'>
47
+ {props.para}
48
+ </Typography>
49
+ }
50
+ {props.readUrl && (
51
+ <a href={props.readUrl}>
52
+ <HDSButton
53
+ label='Read more'
54
+ type='secondaryLink'
55
+ leftIconVariant='none'
56
+ rightIconVariant='none'
57
+ state='default'
58
+ size='md'
59
+ rightAnimatedArrow={true}
60
+ rightAnimatedArrowColor='#3970FD'
61
+ className='mt-4'
62
+ btnTextColorClass='text-blue-500'
63
+ animatedHoverStroke='stroke-blue-500'
64
+ />
65
+ </a>
66
+ )}
67
+
68
+
69
+ </div>
70
+
71
+ </div>
72
+
73
+ <div className={`${CardClass} divide-y divide-neutral-150 flex tb-l:w-full flex-col pt-0`} >
74
+ {
75
+ props.speakerSet && (
76
+ <div className="pl-8 flex gap-6 tb-l:pt-12 tb:mt-0 tb-l:pb-12 pb-6 flex-col ">
77
+ {props.speakerSet.map((value, i) => (
78
+ <div key={i} className="block">
79
+
80
+ <ProfileAvatar
81
+ name={value.name}
82
+ size='md'
83
+ designation={value.designation}
84
+ imageUrl={value.imageUrl}
85
+ />
86
+ </div>
87
+
88
+ ))}
89
+ </div>
90
+ )
91
+ }
92
+ {props.eventTime && <div className=" w-full pl-8 p-6 flex flex-row justify-between items-center">
93
+ <Typography textStyle='h6' className='text-blue-800'>{props.eventTime}</Typography>
94
+ <a href={props.addCalendarUrl}>
95
+ <HDSButton
96
+ leftIconVariant='calendarplus02'
97
+ leftIconColor="#1E56E3"
98
+ rightIconVariant='none'
99
+ state='default'
100
+ size='sm'
101
+ type="iconOnly"
102
+ label=''
103
+ />
104
+ </a>
105
+ </div>}
106
+ </div>
107
+ </div>
108
+ </div>
109
+
110
+ )
111
+
112
+ }
@@ -1221,10 +1221,6 @@ select {
1221
1221
  margin-top: 3rem;
1222
1222
  }
1223
1223
 
1224
- .mt-14 {
1225
- margin-top: 3.5rem;
1226
- }
1227
-
1228
1224
  .mt-16 {
1229
1225
  margin-top: 4rem;
1230
1226
  }
@@ -1538,8 +1534,24 @@ select {
1538
1534
  width: 100vw;
1539
1535
  }
1540
1536
 
1541
- .w-1 {
1542
- width: 0.25rem;
1537
+ .w-\[520px\] {
1538
+ width: 520px;
1539
+ }
1540
+
1541
+ .w-\[62\%\] {
1542
+ width: 62%;
1543
+ }
1544
+
1545
+ .w-\[18\%\] {
1546
+ width: 18%;
1547
+ }
1548
+
1549
+ .w-\[82\%\] {
1550
+ width: 82%;
1551
+ }
1552
+
1553
+ .w-\[434px\] {
1554
+ width: 434px;
1543
1555
  }
1544
1556
 
1545
1557
  .min-w-\[11\.5rem\] {
@@ -1622,6 +1634,14 @@ select {
1622
1634
  max-width: min-content;
1623
1635
  }
1624
1636
 
1637
+ .max-w-\[430px\] {
1638
+ max-width: 430px;
1639
+ }
1640
+
1641
+ .max-w-\[520px\] {
1642
+ max-width: 520px;
1643
+ }
1644
+
1625
1645
  .flex-1 {
1626
1646
  flex: 1 1 0%;
1627
1647
  }
@@ -1751,6 +1771,10 @@ select {
1751
1771
  cursor: pointer;
1752
1772
  }
1753
1773
 
1774
+ .cursor-default {
1775
+ cursor: default;
1776
+ }
1777
+
1754
1778
  .select-none {
1755
1779
  -webkit-user-select: none;
1756
1780
  user-select: none;
@@ -1900,6 +1924,10 @@ select {
1900
1924
  gap: 25rem;
1901
1925
  }
1902
1926
 
1927
+ .gap-8 {
1928
+ gap: 2rem;
1929
+ }
1930
+
1903
1931
  .gap-x-1 {
1904
1932
  -webkit-column-gap: 0.25rem;
1905
1933
  column-gap: 0.25rem;
@@ -2011,6 +2039,12 @@ select {
2011
2039
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
2012
2040
  }
2013
2041
 
2042
+ .divide-y-2 > :not([hidden]) ~ :not([hidden]) {
2043
+ --tw-divide-y-reverse: 0;
2044
+ border-top-width: calc(2px * calc(1 - var(--tw-divide-y-reverse)));
2045
+ border-bottom-width: calc(2px * var(--tw-divide-y-reverse));
2046
+ }
2047
+
2014
2048
  .divide-blue-600\/10 > :not([hidden]) ~ :not([hidden]) {
2015
2049
  border-color: rgb(30 86 227 / 0.1);
2016
2050
  }
@@ -2050,14 +2084,6 @@ select {
2050
2084
  overflow: visible;
2051
2085
  }
2052
2086
 
2053
- .overflow-scroll {
2054
- overflow: scroll;
2055
- }
2056
-
2057
- .overflow-x-auto {
2058
- overflow-x: auto;
2059
- }
2060
-
2061
2087
  .overflow-y-auto {
2062
2088
  overflow-y: auto;
2063
2089
  }
@@ -2130,11 +2156,6 @@ select {
2130
2156
  border-radius: 0.75rem;
2131
2157
  }
2132
2158
 
2133
- .rounded-b-2xl {
2134
- border-bottom-right-radius: 1rem;
2135
- border-bottom-left-radius: 1rem;
2136
- }
2137
-
2138
2159
  .rounded-b-3xl {
2139
2160
  border-bottom-right-radius: 1.5rem;
2140
2161
  border-bottom-left-radius: 1.5rem;
@@ -2227,6 +2248,10 @@ select {
2227
2248
  border-top-width: 1px;
2228
2249
  }
2229
2250
 
2251
+ .border-r-2 {
2252
+ border-right-width: 2px;
2253
+ }
2254
+
2230
2255
  .border-solid {
2231
2256
  border-style: solid;
2232
2257
  }
@@ -5457,12 +5482,24 @@ select {
5457
5482
  padding-top: 1rem;
5458
5483
  }
5459
5484
 
5485
+ .pt-5 {
5486
+ padding-top: 1.25rem;
5487
+ }
5488
+
5460
5489
  .pt-6 {
5461
5490
  padding-top: 1.5rem;
5462
5491
  }
5463
5492
 
5464
- .pt-5 {
5465
- padding-top: 1.25rem;
5493
+ .pt-12 {
5494
+ padding-top: 3rem;
5495
+ }
5496
+
5497
+ .pb-9 {
5498
+ padding-bottom: 2.25rem;
5499
+ }
5500
+
5501
+ .pl-8 {
5502
+ padding-left: 2rem;
5466
5503
  }
5467
5504
 
5468
5505
  .text-left {
@@ -5736,6 +5773,13 @@ select {
5736
5773
  font-weight: 700;
5737
5774
  }
5738
5775
 
5776
+ .text-hds-m-h7 {
5777
+ font-size: 0.75rem;
5778
+ line-height: 1.25rem;
5779
+ letter-spacing: 0.08em;
5780
+ font-weight: 700;
5781
+ }
5782
+
5739
5783
  .text-hds-m-quote {
5740
5784
  font-size: 1.125rem;
5741
5785
  line-height: 1.75rem;
@@ -5772,13 +5816,6 @@ select {
5772
5816
  line-height: 1rem;
5773
5817
  }
5774
5818
 
5775
- .text-hds-m-h7 {
5776
- font-size: 0.75rem;
5777
- line-height: 1.25rem;
5778
- letter-spacing: 0.08em;
5779
- font-weight: 700;
5780
- }
5781
-
5782
5819
  .font-medium {
5783
5820
  font-weight: 500;
5784
5821
  }
@@ -6445,14 +6482,6 @@ select {
6445
6482
  transition-duration: 150ms;
6446
6483
  }
6447
6484
 
6448
- .delay-100 {
6449
- transition-delay: 100ms;
6450
- }
6451
-
6452
- .delay-200 {
6453
- transition-delay: 200ms;
6454
- }
6455
-
6456
6485
  .delay-300 {
6457
6486
  transition-delay: 300ms;
6458
6487
  }
@@ -6485,10 +6514,6 @@ select {
6485
6514
  transition-duration: 700ms;
6486
6515
  }
6487
6516
 
6488
- .duration-1000 {
6489
- transition-duration: 1000ms;
6490
- }
6491
-
6492
6517
  .ease-in {
6493
6518
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
6494
6519
  }
@@ -8069,10 +8094,6 @@ select {
8069
8094
  margin-top: -4px;
8070
8095
  }
8071
8096
 
8072
- .tb\:mt-14 {
8073
- margin-top: 3.5rem;
8074
- }
8075
-
8076
8097
  .tb\:block {
8077
8098
  display: block;
8078
8099
  }
@@ -8200,14 +8221,6 @@ select {
8200
8221
  column-gap: 4rem;
8201
8222
  }
8202
8223
 
8203
- .tb\:rounded-2xl {
8204
- border-radius: 1rem;
8205
- }
8206
-
8207
- .tb\:rounded-3xl {
8208
- border-radius: 1.5rem;
8209
- }
8210
-
8211
8224
  .tb\:rounded {
8212
8225
  border-radius: 0.25rem;
8213
8226
  }
@@ -8238,8 +8251,9 @@ select {
8238
8251
  padding: 4rem;
8239
8252
  }
8240
8253
 
8241
- .tb\:p-8 {
8242
- padding: 2rem;
8254
+ .tb\:px-3 {
8255
+ padding-left: 0.75rem;
8256
+ padding-right: 0.75rem;
8243
8257
  }
8244
8258
 
8245
8259
  .tb\:px-4 {
@@ -8252,11 +8266,6 @@ select {
8252
8266
  padding-right: 2rem;
8253
8267
  }
8254
8268
 
8255
- .tb\:px-3 {
8256
- padding-left: 0.75rem;
8257
- padding-right: 0.75rem;
8258
- }
8259
-
8260
8269
  .tb\:pb-14 {
8261
8270
  padding-bottom: 3.5rem;
8262
8271
  }
@@ -8269,6 +8278,10 @@ select {
8269
8278
  padding-right: 0px;
8270
8279
  }
8271
8280
 
8281
+ .tb\:pt-10 {
8282
+ padding-top: 2.5rem;
8283
+ }
8284
+
8272
8285
  .tb\:pt-8 {
8273
8286
  padding-top: 2rem;
8274
8287
  }
@@ -8277,14 +8290,6 @@ select {
8277
8290
  padding-top: 2.875rem;
8278
8291
  }
8279
8292
 
8280
- .tb\:pt-14 {
8281
- padding-top: 3.5rem;
8282
- }
8283
-
8284
- .tb\:pt-10 {
8285
- padding-top: 2.5rem;
8286
- }
8287
-
8288
8293
  .tb\:text-left {
8289
8294
  text-align: left;
8290
8295
  }
@@ -8517,6 +8522,13 @@ select {
8517
8522
  font-weight: 700;
8518
8523
  }
8519
8524
 
8525
+ .tb\:text-hds-t-h7 {
8526
+ font-size: 0.75rem;
8527
+ line-height: 1.25rem;
8528
+ letter-spacing: 0.08em;
8529
+ font-weight: 700;
8530
+ }
8531
+
8520
8532
  .tb\:text-hds-t-quote {
8521
8533
  font-size: 1.125rem;
8522
8534
  line-height: 1.75rem;
@@ -8537,13 +8549,6 @@ select {
8537
8549
  letter-spacing: -0.01em;
8538
8550
  font-weight: 400;
8539
8551
  }
8540
-
8541
- .tb\:text-hds-t-h7 {
8542
- font-size: 0.75rem;
8543
- line-height: 1.25rem;
8544
- letter-spacing: 0.08em;
8545
- font-weight: 700;
8546
- }
8547
8552
  }
8548
8553
 
8549
8554
  @media (min-width: 640px) {
@@ -8696,6 +8701,10 @@ select {
8696
8701
  width: 100%;
8697
8702
  }
8698
8703
 
8704
+ .tb-l\:w-\[520px\] {
8705
+ width: 520px;
8706
+ }
8707
+
8699
8708
  .tb-l\:min-w-\[400px\] {
8700
8709
  min-width: 400px;
8701
8710
  }
@@ -8746,6 +8755,29 @@ select {
8746
8755
  align-self: center;
8747
8756
  }
8748
8757
 
8758
+ .tb-l\:border-l {
8759
+ border-left-width: 1px;
8760
+ }
8761
+
8762
+ .tb-l\:border-r {
8763
+ border-right-width: 1px;
8764
+ }
8765
+
8766
+ .tb-l\:border-neutral-200 {
8767
+ --tw-border-opacity: 1;
8768
+ border-color: rgb(229 231 235 / var(--tw-border-opacity));
8769
+ }
8770
+
8771
+ .tb-l\:border-l-neutral-200 {
8772
+ --tw-border-opacity: 1;
8773
+ border-left-color: rgb(229 231 235 / var(--tw-border-opacity));
8774
+ }
8775
+
8776
+ .tb-l\:border-r-neutral-200 {
8777
+ --tw-border-opacity: 1;
8778
+ border-right-color: rgb(229 231 235 / var(--tw-border-opacity));
8779
+ }
8780
+
8749
8781
  .tb-l\:bg-gradient-to-r {
8750
8782
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
8751
8783
  }
@@ -8763,6 +8795,22 @@ select {
8763
8795
  padding-left: 2rem;
8764
8796
  }
8765
8797
 
8798
+ .tb-l\:pt-12 {
8799
+ padding-top: 3rem;
8800
+ }
8801
+
8802
+ .tb-l\:pb-9 {
8803
+ padding-bottom: 2.25rem;
8804
+ }
8805
+
8806
+ .tb-l\:pl-32 {
8807
+ padding-left: 8rem;
8808
+ }
8809
+
8810
+ .tb-l\:pb-12 {
8811
+ padding-bottom: 3rem;
8812
+ }
8813
+
8766
8814
  .tb-l\:text-left {
8767
8815
  text-align: left;
8768
8816
  }
@@ -8825,14 +8873,6 @@ select {
8825
8873
  margin-left: 0px;
8826
8874
  }
8827
8875
 
8828
- .db\:mt-16 {
8829
- margin-top: 4rem;
8830
- }
8831
-
8832
- .db\:mt-24 {
8833
- margin-top: 6rem;
8834
- }
8835
-
8836
8876
  .db\:inline {
8837
8877
  display: inline;
8838
8878
  }
@@ -8841,10 +8881,6 @@ select {
8841
8881
  display: flex;
8842
8882
  }
8843
8883
 
8844
- .db\:max-h-\[374px\] {
8845
- max-height: 374px;
8846
- }
8847
-
8848
8884
  .db\:w-1\/2 {
8849
8885
  width: 50%;
8850
8886
  }
@@ -8871,6 +8907,10 @@ select {
8871
8907
  width: 100%;
8872
8908
  }
8873
8909
 
8910
+ .db\:w-\[520px\] {
8911
+ width: 520px;
8912
+ }
8913
+
8874
8914
  .db\:min-w-\[625px\] {
8875
8915
  min-width: 625px;
8876
8916
  }
@@ -8891,10 +8931,6 @@ select {
8891
8931
  max-width: 625px;
8892
8932
  }
8893
8933
 
8894
- .db\:max-w-\[353px\] {
8895
- max-width: 353px;
8896
- }
8897
-
8898
8934
  .db\:grid-cols-4 {
8899
8935
  grid-template-columns: repeat(4, minmax(0, 1fr));
8900
8936
  }
@@ -8903,14 +8939,6 @@ select {
8903
8939
  justify-content: flex-start;
8904
8940
  }
8905
8941
 
8906
- .db\:justify-center {
8907
- justify-content: center;
8908
- }
8909
-
8910
- .db\:justify-between {
8911
- justify-content: space-between;
8912
- }
8913
-
8914
8942
  .db\:gap-0 {
8915
8943
  gap: 0px;
8916
8944
  }
@@ -8989,8 +9017,8 @@ select {
8989
9017
  padding-top: 8rem;
8990
9018
  }
8991
9019
 
8992
- .db\:pt-24 {
8993
- padding-top: 6rem;
9020
+ .db\:pt-0 {
9021
+ padding-top: 0px;
8994
9022
  }
8995
9023
 
8996
9024
  .db\:text-left {
@@ -9221,6 +9249,13 @@ select {
9221
9249
  font-weight: 700;
9222
9250
  }
9223
9251
 
9252
+ .db\:text-hds-d-h7 {
9253
+ font-size: 0.75;
9254
+ line-height: 1.25;
9255
+ letter-spacing: 0.08em;
9256
+ font-weight: 700;
9257
+ }
9258
+
9224
9259
  .db\:text-hds-d-quote {
9225
9260
  font-size: 1.5rem;
9226
9261
  line-height: 2.25rem;
@@ -9241,13 +9276,6 @@ select {
9241
9276
  letter-spacing: -0.01em;
9242
9277
  font-weight: 400;
9243
9278
  }
9244
-
9245
- .db\:text-hds-d-h7 {
9246
- font-size: 0.75;
9247
- line-height: 1.25;
9248
- letter-spacing: 0.08em;
9249
- font-weight: 700;
9250
- }
9251
9279
  }
9252
9280
 
9253
9281
  @media (min-width: 1880px) {
@@ -1,7 +1,6 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
  module.exports = {
3
3
  content: ["./src/**/*.{html,js,jsx}"],
4
- darkMode: 'class',
5
4
  theme: {
6
5
  fontFamily: {
7
6
  sans: [