hds-web 1.5.1 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -10,7 +10,7 @@ import ReactMarkdown from "react-markdown";
10
10
  export default function TalkDetailCard(props) {
11
11
  const badgeLeftIconColor = HDSColor(props.badgeLeftIconColor);
12
12
  return (
13
- <div className="grid grid-cols-1 tb:grid-cols-2 gap-16 db:gap-28 tb:gap-16">
13
+ <div className="grid grid-cols-1 tb:grid-cols-2 gap-6 db:gap-28 tb:gap-16">
14
14
  <div>
15
15
  <div className="flex flex-row flex-wrap tb:gap-3 gap-2">
16
16
  {props.badges &&
@@ -35,11 +35,11 @@ export default function TalkDetailCard(props) {
35
35
  props.tag_line && (<Typography textStyle='h6' className='text-blue-600 uppercase pt-4 pb-2'>{props.tag_line}</Typography>)
36
36
  }
37
37
  {
38
- props.title && (<Typography textStyle='h3' as='h3' className='text-blue-900 pb-4'>{props.title}</Typography>)
38
+ props.title && (<Typography textStyle='h3' as='h3' className='text-blue-900 pb-6 db:pb-0'>{props.title}</Typography>)
39
39
  }
40
40
  {
41
41
  props.social_share && (
42
- <div className='flex items-center '>
42
+ <div className='flex pb-6 tb:pt-0 tb:pb-0 items-center '>
43
43
  {
44
44
  props.social_share.map((socialShare, i) => (
45
45
  <a href={socialShare.share_url} className='mx-2 first:ml-0 last:mr-0'>
@@ -52,8 +52,8 @@ export default function TalkDetailCard(props) {
52
52
  }
53
53
  {
54
54
  props.speaker_card && (
55
- <div>
56
- <Typography textStyle='h6' as='h6' className='uppercase text-neutral-500 pb-6 pt-8 tb:pt-14'>speakers</Typography>
55
+ <div className="border-t border-neutral-200 border-b pb-6 tb:border-0 tb:pb-0">
56
+ <Typography textStyle='h6' as='h6' className='uppercase text-neutral-500 pb-6 pt-6 tb:pt-14'>speakers</Typography>
57
57
 
58
58
  {
59
59
  props.speaker_card.map((speaker, i) => (
@@ -7,9 +7,9 @@ import { Tab } from '../Tabs'
7
7
  import ReactMarkdown from "react-markdown";
8
8
 
9
9
  const tabs = [
10
- { name: 'Level 1', href: '', current: true },
11
- { name: 'Level 2', href: '', current: false },
12
- { name: 'Level 3', href: '', current: false },
10
+ { name: 'Tier 1', href: '', current: true },
11
+ { name: 'Tier 2', href: '', current: false },
12
+ { name: 'Tier 3', href: '', current: false },
13
13
  ]
14
14
 
15
15
 
@@ -66,9 +66,9 @@ export default function TableB(props) {
66
66
  const [activeTab, setActiveTab] = useState(1);
67
67
 
68
68
  function handleTabClick(tab) {
69
- if (tab.name === 'Level 1') setActiveTab(1);
70
- if (tab.name === 'Level 2') setActiveTab(2);
71
- if (tab.name === 'Level 3') setActiveTab(3);
69
+ if (tab.name === 'Tier 1') setActiveTab(1);
70
+ if (tab.name === 'Tier 2') setActiveTab(2);
71
+ if (tab.name === 'Tier 3') setActiveTab(3);
72
72
  // Perform any other actions based on the clicked tab
73
73
  }
74
74
 
@@ -179,7 +179,7 @@ export default function TableB(props) {
179
179
  >
180
180
  <div className=''>
181
181
  <div className='flex flex-col justify-center items-center text-center'>
182
- <div className={'flex items-center gap-2'}>
182
+ <div className={'flex items-center gap-2 w-full justify-center'}>
183
183
  {TABLE_HEADER[key]['icon'] &&
184
184
  (
185
185
  <Icon
@@ -192,7 +192,7 @@ export default function TableB(props) {
192
192
  TABLE_HEADER[key]['title'] && key == 0 && (
193
193
  <Typography
194
194
  textStyle='h5'
195
- className={HDSColor(TABLE_HEADER[key]['title_text_color'])}>
195
+ className={`w-full text-left ${HDSColor(TABLE_HEADER[key]['title_text_color'])}`}>
196
196
  {TABLE_HEADER[key]['title']}
197
197
  </Typography>)
198
198
  }
@@ -54,7 +54,7 @@ const levelCalc = (arr, index) => {
54
54
 
55
55
  }
56
56
 
57
- export default function TableB(props) {
57
+ export default function TablePlatform(props) {
58
58
  const {
59
59
  title,
60
60
  title_color,
@@ -375,7 +375,7 @@ export default function TableB(props) {
375
375
  )
376
376
  }
377
377
 
378
- TableB.defaultProps = {
378
+ TablePlatform.defaultProps = {
379
379
  title_color: 'text-blue-800',
380
380
  desc_color: 'text-blue-600'
381
381
  }
@@ -5464,6 +5464,10 @@ select {
5464
5464
  padding-top: 2rem;
5465
5465
  }
5466
5466
 
5467
+ .pb-3 {
5468
+ padding-bottom: 0.75rem;
5469
+ }
5470
+
5467
5471
  .text-left {
5468
5472
  text-align: left;
5469
5473
  }
@@ -8285,6 +8289,10 @@ select {
8285
8289
  border-right-width: 1px;
8286
8290
  }
8287
8291
 
8292
+ .tb\:border-t {
8293
+ border-top-width: 1px;
8294
+ }
8295
+
8288
8296
  .tb\:border-r-neutral-150 {
8289
8297
  --tw-border-opacity: 1;
8290
8298
  border-right-color: rgb(236 237 240 / var(--tw-border-opacity));
@@ -8346,6 +8354,22 @@ select {
8346
8354
  padding-top: 2.875rem;
8347
8355
  }
8348
8356
 
8357
+ .tb\:pt-6 {
8358
+ padding-top: 1.5rem;
8359
+ }
8360
+
8361
+ .tb\:pb-6 {
8362
+ padding-bottom: 1.5rem;
8363
+ }
8364
+
8365
+ .tb\:pb-0 {
8366
+ padding-bottom: 0px;
8367
+ }
8368
+
8369
+ .tb\:pt-0 {
8370
+ padding-top: 0px;
8371
+ }
8372
+
8349
8373
  .tb\:text-left {
8350
8374
  text-align: left;
8351
8375
  }
@@ -9089,6 +9113,10 @@ select {
9089
9113
  padding-top: 8rem;
9090
9114
  }
9091
9115
 
9116
+ .db\:pb-0 {
9117
+ padding-bottom: 0px;
9118
+ }
9119
+
9092
9120
  .db\:text-left {
9093
9121
  text-align: left;
9094
9122
  }