hds-web 1.15.8 → 1.16.0

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.15.8",
3
+ "version": "1.16.0",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -12,11 +12,12 @@
12
12
  "@testing-library/react": "^13.4.0",
13
13
  "@testing-library/user-event": "^13.5.0",
14
14
  "framer-motion": "^10.12.16",
15
- "prismjs": "^1.29.0",
15
+ "path-browserify": "^1.0.1",
16
16
  "prop-types": "^15.8.1",
17
17
  "react": "^17.0.1",
18
18
  "react-dom": "^17.0.1",
19
19
  "react-github-btn": "^1.4.0",
20
+ "react-instantsearch-dom": "^6.40.1",
20
21
  "react-markdown": "^8.0.7",
21
22
  "react-scripts": "5.0.1",
22
23
  "uuid": "^9.0.0",
@@ -5,7 +5,6 @@ export * from './Dropdown';
5
5
  export * from './Feedback';
6
6
  export * from './Link';
7
7
  export * from './TalkDetailCard';
8
- export * from './ImageSlider';
9
8
  export * from './CommunityCard';
10
9
  export * from './Announcement';
11
10
  export * from './VideoCard';
@@ -1,70 +1,70 @@
1
- import React, { useState, useRef, useEffect } from 'react';
2
- import PropTypes from 'prop-types';
3
- import Prism from 'prismjs';
4
- import 'prismjs/themes/prism.css';
5
- import 'prismjs/components/prism-javascript';
1
+ // import React, { useState, useRef, useEffect } from 'react';
2
+ // import PropTypes from 'prop-types';
3
+ // import Prism from 'prismjs';
4
+ // import 'prismjs/themes/prism.css';
5
+ // import 'prismjs/components/prism-javascript';
6
6
 
7
- function CodeSnippetWithCopy({ snippet, filename, backgroundColor }) {
7
+ // function CodeSnippetWithCopy({ snippet, filename, backgroundColor }) {
8
8
 
9
- if(!snippet){
10
- snippet='as'
11
- }
9
+ // if(!snippet){
10
+ // snippet='as'
11
+ // }
12
12
 
13
- const [isCopied, setIsCopied] = useState(false);
14
- const preRef = useRef(null);
13
+ // const [isCopied, setIsCopied] = useState(false);
14
+ // const preRef = useRef(null);
15
15
 
16
- async function copyToClipboard() {
17
- try {
18
- await navigator.clipboard.writeText(snippet);
19
- setIsCopied(true);
20
- setTimeout(() => setIsCopied(false), 1500);
21
- } catch (error) {
22
- console.error('Failed to copy to clipboard', error);
23
- }
24
- }
16
+ // async function copyToClipboard() {
17
+ // try {
18
+ // await navigator.clipboard.writeText(snippet);
19
+ // setIsCopied(true);
20
+ // setTimeout(() => setIsCopied(false), 1500);
21
+ // } catch (error) {
22
+ // console.error('Failed to copy to clipboard', error);
23
+ // }
24
+ // }
25
25
 
26
26
 
27
- useEffect(() => {
28
- console.log(snippet)
29
- if (preRef.current ) {
30
- Prism.highlightAll();
31
- }
32
- }, [snippet, preRef.current]);
27
+ // useEffect(() => {
28
+ // console.log(snippet)
29
+ // if (preRef.current ) {
30
+ // Prism.highlightAll();
31
+ // }
32
+ // }, [snippet, preRef.current]);
33
33
 
34
34
 
35
- const lines = snippet.split('\n');
36
- const lineCount = lines.length;
37
- if(snippet){}
38
- return (
39
- <div className={`${backgroundColor} border border-neutral-100 rounded relative`}>
40
- {filename ? (
41
- <span className='bg-neutral-100 flex p-2 text-sm-medium text-neutral-900'>{filename}</span>
42
- ) : null}
35
+ // const lines = snippet.split('\n');
36
+ // const lineCount = lines.length;
37
+ // if(snippet){}
38
+ // return (
39
+ // <div className={`${backgroundColor} border border-neutral-100 rounded relative`}>
40
+ // {filename ? (
41
+ // <span className='bg-neutral-100 flex p-2 text-sm-medium text-neutral-900'>{filename}</span>
42
+ // ) : null}
43
43
 
44
- <div className='my-6 mx-10'>
45
- <pre style={{ whiteSpace: 'pre-wrap' }} ref={preRef} className='line-numbers'>
46
- {lines.map((line, index) => (
47
- <code className='language-javascript' key={index}>
48
- <span className='text-sm text-neutral-500 mr-4'>{index + 1} </span>
49
- {line}
50
- {index < lineCount - 1 ? '\n' : null}
51
- </code>
52
- ))}
53
- </pre>
44
+ // <div className='my-6 mx-10'>
45
+ // <pre style={{ whiteSpace: 'pre-wrap' }} ref={preRef} className='line-numbers'>
46
+ // {lines.map((line, index) => (
47
+ // <code className='language-javascript' key={index}>
48
+ // <span className='text-sm text-neutral-500 mr-4'>{index + 1} </span>
49
+ // {line}
50
+ // {index < lineCount - 1 ? '\n' : null}
51
+ // </code>
52
+ // ))}
53
+ // </pre>
54
54
 
55
- <button
56
- className='border border-neutral-400 button-sm absolute bottom-0 right-0 mb-4 mr-4'
57
- onClick={copyToClipboard}
58
- >
59
- {isCopied ? 'Copied!' : 'Copy to Clipboard'}
60
- </button>
61
- </div>
62
- </div>
63
- );
64
- }
55
+ // <button
56
+ // className='border border-neutral-400 button-sm absolute bottom-0 right-0 mb-4 mr-4'
57
+ // onClick={copyToClipboard}
58
+ // >
59
+ // {isCopied ? 'Copied!' : 'Copy to Clipboard'}
60
+ // </button>
61
+ // </div>
62
+ // </div>
63
+ // );
64
+ // }
65
65
 
66
- // CodeSnippetWithCopy.propTypes = {
67
- // snippet: PropTypes.string.isRequired,
68
- // };
66
+ // // CodeSnippetWithCopy.propTypes = {
67
+ // // snippet: PropTypes.string.isRequired,
68
+ // // };
69
69
 
70
- export default CodeSnippetWithCopy;
70
+ // export default CodeSnippetWithCopy;
@@ -1 +1 @@
1
- export {default as CodeSnippet} from './CodeSnippet';
1
+ // export {default as CodeSnippet} from './CodeSnippet';
@@ -8,7 +8,6 @@ export * from './Checkbox';
8
8
  export * from './Headers';
9
9
  export * from './common-components';
10
10
  export * from './InputFields';
11
- export * from './Snippet';
12
11
  export * from './Tabs';
13
12
  export * from './Tooltip';
14
13
  export * from './Hero';
@@ -827,6 +827,10 @@ select{
827
827
  visibility: hidden;
828
828
  }
829
829
 
830
+ .static{
831
+ position: static;
832
+ }
833
+
830
834
  .fixed{
831
835
  position: fixed;
832
836
  }
@@ -886,6 +890,10 @@ select{
886
890
  right: -44px;
887
891
  }
888
892
 
893
+ .-top-20{
894
+ top: -5rem;
895
+ }
896
+
889
897
  .bottom-0{
890
898
  bottom: 0px;
891
899
  }
@@ -970,6 +978,10 @@ select{
970
978
  right: 0.5rem;
971
979
  }
972
980
 
981
+ .right-4{
982
+ right: 1rem;
983
+ }
984
+
973
985
  .right-8{
974
986
  right: 2rem;
975
987
  }
@@ -994,6 +1006,10 @@ select{
994
1006
  top: 0.5rem;
995
1007
  }
996
1008
 
1009
+ .top-4{
1010
+ top: 1rem;
1011
+ }
1012
+
997
1013
  .top-5{
998
1014
  top: 1.25rem;
999
1015
  }
@@ -1022,6 +1038,10 @@ select{
1022
1038
  top: 72px;
1023
1039
  }
1024
1040
 
1041
+ .top-\[96px\]{
1042
+ top: 96px;
1043
+ }
1044
+
1025
1045
  .isolate{
1026
1046
  isolation: isolate;
1027
1047
  }
@@ -1050,6 +1070,10 @@ select{
1050
1070
  z-index: 50;
1051
1071
  }
1052
1072
 
1073
+ .z-\[10000\]{
1074
+ z-index: 10000;
1075
+ }
1076
+
1053
1077
  .z-\[100\]{
1054
1078
  z-index: 100;
1055
1079
  }
@@ -1058,6 +1082,10 @@ select{
1058
1082
  z-index: 10;
1059
1083
  }
1060
1084
 
1085
+ .z-\[11\]{
1086
+ z-index: 11;
1087
+ }
1088
+
1061
1089
  .z-\[1\]{
1062
1090
  z-index: 1;
1063
1091
  }
@@ -1082,6 +1110,10 @@ select{
1082
1110
  grid-column: span 4 / span 4;
1083
1111
  }
1084
1112
 
1113
+ .clear-both{
1114
+ clear: both;
1115
+ }
1116
+
1085
1117
  .-m-1{
1086
1118
  margin: -0.25rem;
1087
1119
  }
@@ -1102,6 +1134,10 @@ select{
1102
1134
  margin: -0.75rem;
1103
1135
  }
1104
1136
 
1137
+ .m-1{
1138
+ margin: 0.25rem;
1139
+ }
1140
+
1105
1141
  .m-2{
1106
1142
  margin: 0.5rem;
1107
1143
  }
@@ -2654,6 +2690,10 @@ select{
2654
2690
  border-width: 1.5px;
2655
2691
  }
2656
2692
 
2693
+ .border-\[3px\]{
2694
+ border-width: 3px;
2695
+ }
2696
+
2657
2697
  .border-x{
2658
2698
  border-left-width: 1px;
2659
2699
  border-right-width: 1px;
@@ -3201,11 +3241,21 @@ select{
3201
3241
  border-bottom-color: rgb(157 164 174 / var(--tw-border-opacity));
3202
3242
  }
3203
3243
 
3244
+ .border-t-blue-500{
3245
+ --tw-border-opacity: 1;
3246
+ border-top-color: rgb(57 112 253 / var(--tw-border-opacity));
3247
+ }
3248
+
3204
3249
  .border-t-neutral-150{
3205
3250
  --tw-border-opacity: 1;
3206
3251
  border-top-color: rgb(236 237 240 / var(--tw-border-opacity));
3207
3252
  }
3208
3253
 
3254
+ .border-t-neutral-200{
3255
+ --tw-border-opacity: 1;
3256
+ border-top-color: rgb(229 231 235 / var(--tw-border-opacity));
3257
+ }
3258
+
3209
3259
  .bg-amber-100{
3210
3260
  --tw-bg-opacity: 1;
3211
3261
  background-color: rgb(255 243 212 / var(--tw-bg-opacity));
@@ -6457,6 +6507,10 @@ select{
6457
6507
  text-align: right;
6458
6508
  }
6459
6509
 
6510
+ .indent-5{
6511
+ text-indent: 1.25rem;
6512
+ }
6513
+
6460
6514
  .font-petrona{
6461
6515
  font-family: Petrona, serif;
6462
6516
  }
@@ -9462,6 +9516,11 @@ select{
9462
9516
  color: rgb(30 86 227 / var(--tw-text-opacity));
9463
9517
  }
9464
9518
 
9519
+ .hover\:text-blue-700:hover{
9520
+ --tw-text-opacity: 1;
9521
+ color: rgb(13 65 198 / var(--tw-text-opacity));
9522
+ }
9523
+
9465
9524
  .hover\:text-neutral-0:hover{
9466
9525
  --tw-text-opacity: 1;
9467
9526
  color: rgb(255 255 255 / var(--tw-text-opacity));
@@ -10846,6 +10905,23 @@ select{
10846
10905
  }
10847
10906
 
10848
10907
  @media (min-width: 800px){
10908
+ .tb-m\:sticky{
10909
+ position: -webkit-sticky;
10910
+ position: sticky;
10911
+ }
10912
+
10913
+ .tb-m\:-top-20{
10914
+ top: -5rem;
10915
+ }
10916
+
10917
+ .tb-m\:mr-0{
10918
+ margin-right: 0px;
10919
+ }
10920
+
10921
+ .tb-m\:block{
10922
+ display: block;
10923
+ }
10924
+
10849
10925
  .tb-m\:flex{
10850
10926
  display: flex;
10851
10927
  }
@@ -10854,6 +10930,10 @@ select{
10854
10930
  width: 50%;
10855
10931
  }
10856
10932
 
10933
+ .tb-m\:min-w-\[150px\]{
10934
+ min-width: 150px;
10935
+ }
10936
+
10857
10937
  .tb-m\:snap-start{
10858
10938
  scroll-snap-align: start;
10859
10939
  }
@@ -10870,6 +10950,11 @@ select{
10870
10950
  border-top-width: 0px;
10871
10951
  }
10872
10952
 
10953
+ .tb-m\:py-9{
10954
+ padding-top: 2.25rem;
10955
+ padding-bottom: 2.25rem;
10956
+ }
10957
+
10873
10958
  .tb-m\:pb-0{
10874
10959
  padding-bottom: 0px;
10875
10960
  }
@@ -10877,6 +10962,10 @@ select{
10877
10962
  .tb-m\:pt-0{
10878
10963
  padding-top: 0px;
10879
10964
  }
10965
+
10966
+ .tb-m\:pt-16{
10967
+ padding-top: 4rem;
10968
+ }
10880
10969
  }
10881
10970
 
10882
10971
  @media (min-width: 905px){