@xaypay/tui 0.0.45 → 0.0.47

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.
@@ -17,32 +17,32 @@ export const Modal = ({
17
17
  const classProps = classnames(styles.modal, className);
18
18
  const [select, setSelect] = useState(selected);
19
19
  return (
20
- <div className={styles["modal-wrap"]}>
20
+ <div className={`${styles["modal-wrap"]} modal-wrap-rem`}>
21
21
  {type == "content" ? (
22
- <div className={styles["modal-content"]}>
23
- <div className={styles["modal-top"]}>
24
- <div className={styles["modal-title"]}>
22
+ <div className={`${styles["modal-content"]} modal-content-rem`}>
23
+ <div className={`${styles["modal-top"]} modal-top-rem`}>
24
+ <div className={`${styles["modal-title"]} modal-title-rem`}>
25
25
  <Typography variant={TypographyType.p} color="#00236A">{headerText}</Typography>
26
26
  </div>
27
27
  <div
28
- className={styles["close-btn"]}
28
+ className={`${styles["close-btn"]} close-btn-rem`}
29
29
  onClick={() => setShow(false)}
30
30
  >
31
31
  <i className="icon-close" />
32
32
  </div>
33
33
  </div>
34
- <div className={styles["modal-section"]}>{children}</div>
34
+ <div className={`${styles["modal-section"]} modal-section-rem`}>{children}</div>
35
35
  </div>
36
36
  ) : type == "images" ? (
37
- <div className={styles["modal-content"]}>
37
+ <div className={`${styles["modal-content"]} modal-content-rem`}>
38
38
  <div
39
- className={styles["close-btn"]}
39
+ className={`${styles["close-btn"]} close-btn-rem`}
40
40
  onClick={() => setShow(false)}
41
41
  >
42
42
  <i className="icon-close" />
43
43
  </div>
44
44
 
45
- <div className={styles["modal-section"]}>
45
+ <div className={`${styles["modal-section"]} modal-section-rem`}>
46
46
  <div>
47
47
  {select > 1 ? (
48
48
  <h1 onClick={() => setSelect(select - 1)}>-</h1>
@@ -17,12 +17,12 @@ export const Multiselect = ({
17
17
  const [values, setValues] = useState(jsonOptionsData.length ? JSON.parse(jsonOptionsData) : []);
18
18
  const [opened, setOpened] = useState(false);
19
19
  return (
20
- <div className={styles.main}>
21
- {label ? <label className={styles['multi-select-title']}>{label} {required && <sup style={{color: "#ee0000"}}>*</sup>}</label> : ""}
22
- <div className={styles['multi-select-content-top']} onClick={() => { setOpened(!opened) }}>
20
+ <div className={`${styles.main} multi-select`}>
21
+ {label ? <label className={`${styles['multi-select-title']} multi-select-title-rem`}>{label} {required && <sup style={{color: "#ee0000"}}>*</sup>}</label> : ""}
22
+ <div className={`${styles['multi-select-content-top']} multi-select-content-top-rem`} onClick={() => { setOpened(!opened) }}>
23
23
  {
24
24
  options.map((option, i) => {
25
- return (<div className={styles['multi-select-content-bottom-row']} key={option[keyNames.id]}>
25
+ return (<div className={`${styles['multi-select-content-bottom-row']} multi-select-content-bottom-row-rem`} key={option[keyNames.id]}>
26
26
  <div id={option[keyNames.id]}>{option[keyNames.name]}</div>
27
27
  <div
28
28
  onClick={() => {
@@ -33,7 +33,8 @@ export const Multiselect = ({
33
33
  setOpened(true);
34
34
  }}
35
35
  >
36
- <Icon className='icon-close' />
36
+ {/*<Icon className='icon-close' />*/}
37
+ <i className='icon-close'></i>
37
38
  </div>
38
39
 
39
40
  </div>)
@@ -47,19 +48,19 @@ export const Multiselect = ({
47
48
 
48
49
 
49
50
  }} className={styles.input} type='text' />
50
- <div className={styles['select-content-top-icon']}>
51
+ <div className={`${styles['select-content-top-icon']} select-content-top-icon-rem`}>
51
52
  <Icon className={opened ? 'icon-arrow-up' : 'icon-arrow-down'} />
52
53
  </div>
53
54
  </div>
54
55
  {
55
56
 
56
- opened ? <div className={styles['multi-select-content-bottom']} onClick={onchange}>
57
- <div className={styles['multi-select-content-bottom-inner']}>
57
+ opened ? <div className={`${styles['multi-select-content-bottom']} multi-select-content-bottom-rem`} onClick={onchange}>
58
+ <div className={`${styles['multi-select-content-bottom-inner']} multi-select-content-bottom-inner-rem`}>
58
59
  {
59
60
  values.length ?
60
61
  values.map((value, i) => {
61
62
  return (<div
62
- className={styles['multi-select-content-bottom-row']}
63
+ className={`${styles['multi-select-content-bottom-row']} multi-select-content-bottom-row-rem`}
63
64
  key={value[keyNames.id]}
64
65
  id={value.id}
65
66
  onClick={(e) => {
@@ -71,7 +72,7 @@ export const Multiselect = ({
71
72
  {value[keyNames.name]}
72
73
  </div>)
73
74
  }) :
74
- <div className={styles['no-elements']}>No Elements!</div>
75
+ <div className={`${styles['no-elements']} no-elements-rem`}>No Elements!</div>
75
76
  }
76
77
  </div>
77
78
  </div> : null
@@ -42,7 +42,7 @@ export const Pagination = ({
42
42
  if (currentPageNumber === 0 || paginationRange.length < 2) {
43
43
  return null;
44
44
  }
45
- const classProps = classnames(styles.list, className ? className : styles["pagination-bar"]);
45
+ const classProps = classnames(styles.list, className ? className : `${styles["pagination-bar"]} pagination-bar-rem`);
46
46
 
47
47
  const onNext = () => {
48
48
  onPageChange(currentPageNumber + 1);
@@ -68,7 +68,7 @@ export const Pagination = ({
68
68
  return (
69
69
  <ul className={classProps}>
70
70
  <button
71
- className={styles["pagination-btn"]}
71
+ className={`${styles["pagination-btn"]} pagination-btn-rem`}
72
72
  onClick={onPrevious}
73
73
  disabled={currentPage === 1 ? true : false}
74
74
  >
@@ -83,7 +83,7 @@ export const Pagination = ({
83
83
  <li
84
84
  key={id}
85
85
  className={classnames(
86
- styles["pagination-jump-next"],
86
+ `${styles["pagination-jump-next"]} pagination-jump-next-rem`,
87
87
  styles.listItem
88
88
  )}
89
89
  onClick={
@@ -97,14 +97,14 @@ export const Pagination = ({
97
97
  <>
98
98
  <span
99
99
  className={
100
- styles["pagination-jump-next-txt"]
100
+ `${styles["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
101
101
  }
102
102
  >
103
103
  <i className="icon-text" />
104
104
  </span>
105
105
  <span
106
106
  className={
107
- styles["pagination-jump-next-arrow"]
107
+ `${styles["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`
108
108
  }
109
109
  >
110
110
  {/* <Icon className="icon-arrow-jump-next"/> */}
@@ -115,14 +115,14 @@ export const Pagination = ({
115
115
  <>
116
116
  <span
117
117
  className={
118
- styles["pagination-jump-next-txt"]
118
+ `${styles["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
119
119
  }
120
120
  >
121
121
  <i className="icon-text" />
122
122
  </span>
123
123
  <span
124
124
  className={
125
- styles["pagination-jump-next-arrow"]
125
+ `${styles["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`
126
126
  }
127
127
  >
128
128
  {/* <Icon className="icon-arrow-jump-next"/> */}
@@ -144,7 +144,7 @@ export const Pagination = ({
144
144
  ? styles.selected
145
145
  : styles.listItem
146
146
  }`,
147
- styles["pagination-item"]
147
+ `${styles["pagination-item"]} pagination-item-rem`
148
148
  )}
149
149
  >
150
150
  {pageNumber}
@@ -153,7 +153,7 @@ export const Pagination = ({
153
153
  })}
154
154
  <button
155
155
  onClick={onNext}
156
- className={styles["pagination-btn"]}
156
+ className={`${styles["pagination-btn"]} pagination-btn-rem`}
157
157
  disabled={currentPageNumber === lastPage ? true : false}
158
158
  >
159
159
  {/* <Icon className='icon-arrow'/> */}
@@ -22,7 +22,7 @@ export const Radio = ({
22
22
  <>
23
23
  {parseData.map((element, id) => {
24
24
  return (
25
- <label className={styles["radio-wrap"]} key={element.value}>
25
+ <label className={`${styles["radio-wrap"]} radio-wrap-rem`} key={element.value}>
26
26
  <input
27
27
  type="radio"
28
28
  className={classProps}
@@ -33,7 +33,7 @@ export const Radio = ({
33
33
  name={name ? name : element.name}
34
34
  {...props}
35
35
  />
36
- <span className={styles["radio-checkmark"]}/>
36
+ <span className={`${styles["radio-checkmark"]} radio-checkmark-rem`}/>
37
37
  {element.label ? (
38
38
  <span className={styles.labelRadio}>
39
39
  {label ? label : element.label}
@@ -74,17 +74,17 @@ export const Select = ({
74
74
 
75
75
  return (
76
76
  <div>
77
- {label ? <label className={styles['select-title']}>{label} {required && <sup style={{color: "#ee0000"}}>*</sup>}</label> : ""}
78
- <div className={styles['select-wrap']} ref={ref}>
77
+ {label ? <label className={`${styles['select-title']} select-title-rem`}>{label} {required && <sup style={{color: "#ee0000"}}>*</sup>}</label> : ""}
78
+ <div className={`${styles['select-wrap']} select-wrap-rem`} ref={ref}>
79
79
  <div className={styles['select-content']} id={styles.selector}>
80
80
  <div
81
- className={styles['select-content-top']}
81
+ className={`${styles['select-content-top']} select-content-top-rem`}
82
82
  onClick={() => {
83
83
  setOpened(!opened)
84
84
  }}
85
85
  >
86
- <div className={styles['select-content-top-text']}>{newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption}</div>
87
- <div className={styles['select-content-top-icon']}>
86
+ <div className={`${styles['select-content-top-text']} select-content-top-text-rem`}>{newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption}</div>
87
+ <div className={`${styles['select-content-top-icon']} select-content-top-icon-rem`}>
88
88
 
89
89
  {Object.keys(newSelected).length > 0 &&
90
90
  <i className="icon-close" onClick={
@@ -101,8 +101,8 @@ export const Select = ({
101
101
  </div>
102
102
  {
103
103
  opened && !disabled ?
104
- <div className={styles['select-content-bottom']}>
105
- <div className={styles['select-content-bottom-inner']}>
104
+ <div className={`${styles['select-content-bottom']} select-content-bottom-rem`}>
105
+ <div className={`${styles['select-content-bottom-inner']} select-content-bottom-inner-rem`}>
106
106
  {/* <div
107
107
  className={styles['select-content-bottom-row']}
108
108
  onClick={() => {
@@ -120,7 +120,7 @@ export const Select = ({
120
120
  options.map((option, i) => {
121
121
  return <div
122
122
  key={i}
123
- className={styles['select-content-bottom-row']}
123
+ className={`${styles['select-content-bottom-row']} select-content-bottom-row-rem`}
124
124
  disabled={true}
125
125
  onClick={() => {
126
126
  setNewSelected(option);
@@ -4,9 +4,9 @@ import classNames from "classnames";
4
4
  import styles from "./stepper.module.css";
5
5
 
6
6
  export const Stepper = ({ className, onChange, stepLength, activeSteps }) => {
7
- const classProps = classNames(className);
7
+ const classProps = classNames(className, 'stepper-inner-rem');
8
8
  return (
9
- <div className={styles['stepper-container']}>
9
+ <div className={`${styles['stepper-container']} stepper-container-rem`}>
10
10
  {(() => {
11
11
  let steppers = [];
12
12
  for (let step = 1; step <= stepLength; step++) {
@@ -31,25 +31,25 @@ export const Table = ({
31
31
  : "";
32
32
 
33
33
  return (
34
- <div className={styles["table-wrap"]}>
34
+ <div className={`${styles["table-wrap"]} table-wrap-rem`}>
35
35
  {config.isHeader &&
36
36
  hearderData.map((header, key) => {
37
37
  return (
38
- <div className={styles["table-top"]} key={key}>
39
- <div className={styles["table-items"]}>
38
+ <div className={`${styles["table-top"]} table-top-rem`} key={key}>
39
+ <div className={`${styles["table-items"]} table-items-rem`}>
40
40
  {header}
41
41
  </div>
42
42
  </div>
43
43
  );
44
44
  })}
45
- <div className={styles["table-bottom"]}>
45
+ <div className={`${styles["table-bottom"]} table-bottom-rem`}>
46
46
  {tbodyData.map((item, key) => {
47
47
  return (
48
- <div className={styles["table-bottom-inner"]} key={key}>
48
+ <div className={`${styles["table-bottom-inner"]} table-bottom-inner-rem`} key={key}>
49
49
  {keyNames.map((keyName, keyNameKey) => {
50
50
  return (
51
51
  <div
52
- className={styles["table-items"]}
52
+ className={`${styles["table-items"]} table-items-rem`}
53
53
  key={keyNameKey}
54
54
  >
55
55
  {config.isCheckbox &&
@@ -83,7 +83,7 @@ export const Table = ({
83
83
  })}
84
84
 
85
85
  {actions && (
86
- <div className={styles["table-items"]}>
86
+ <div className={`${styles["table-items"]} table-items-rem`}>
87
87
  {actions.filter(a => a.show && a.show(item) || a.show === undefined).map((action, key) => {
88
88
  return (<div key={key}>
89
89
  <i className={action.icon} onClick={action.click? action.click : ()=>{}}>
@@ -19,7 +19,7 @@ export const TypographyType = {
19
19
 
20
20
 
21
21
  export const Typography = ({onClick, variant, className, color, bold, children, ...props }) => {
22
- const classProps = classnames(className,bold ? 'bold': '');
22
+ const classProps = classnames(className,'sizes-rem',bold ? 'bold': '');
23
23
  const CustomTag = variant;
24
24
 
25
25
  // const Tag = ({ className, children }) => (
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptLibraryMappings">
4
- <excludedPredefinedLibrary name="tui/node_modules" />
5
- </component>
6
- </project>
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptSettings">
4
- <option name="languageLevel" value="JSX" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/tui.iml" filepath="$PROJECT_DIR$/.idea/tui.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/tui.iml DELETED
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/temp" />
6
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,66 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" id="30dbb06f-44af-47c8-ab66-a66514b5b93b" name="Default Changelist" comment="">
5
- <change beforePath="$PROJECT_DIR$/.idea/tui.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/tui.iml" afterDir="false" />
6
- <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
7
- <change beforePath="$PROJECT_DIR$/src/components/file/file.module.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/file/file.module.css" afterDir="false" />
8
- </list>
9
- <option name="SHOW_DIALOG" value="false" />
10
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
- <option name="LAST_RESOLUTION" value="IGNORE" />
13
- </component>
14
- <component name="Git.Settings">
15
- <option name="RECENT_BRANCH_BY_REPOSITORY">
16
- <map>
17
- <entry key="$PROJECT_DIR$" value="master" />
18
- </map>
19
- </option>
20
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
21
- </component>
22
- <component name="ProjectId" id="2K67SIWiFpjLifxjyrHQQvdETp8" />
23
- <component name="ProjectViewState">
24
- <option name="hideEmptyMiddlePackages" value="true" />
25
- <option name="showLibraryContents" value="true" />
26
- </component>
27
- <component name="PropertiesComponent">
28
- <property name="Git.Branch.Popup.ShowAllRemotes" value="true" />
29
- <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
30
- <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
31
- <property name="WebServerToolWindowFactoryState" value="false" />
32
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
33
- <property name="node.js.detected.package.eslint" value="true" />
34
- <property name="node.js.detected.package.tslint" value="true" />
35
- <property name="node.js.selected.package.eslint" value="(autodetect)" />
36
- <property name="node.js.selected.package.tslint" value="(autodetect)" />
37
- <property name="nodejs_package_manager_path" value="npm" />
38
- <property name="vue.rearranger.settings.migration" value="true" />
39
- </component>
40
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
41
- <component name="TaskManager">
42
- <task active="true" id="Default" summary="Default task">
43
- <changelist id="30dbb06f-44af-47c8-ab66-a66514b5b93b" name="Default Changelist" comment="" />
44
- <created>1673283176577</created>
45
- <option name="number" value="Default" />
46
- <option name="presentableId" value="Default" />
47
- <updated>1673283176577</updated>
48
- <workItem from="1673283177941" duration="620000" />
49
- </task>
50
- <servers />
51
- </component>
52
- <component name="TypeScriptGeneratedFilesManager">
53
- <option name="version" value="3" />
54
- </component>
55
- <component name="Vcs.Log.Tabs.Properties">
56
- <option name="TAB_STATES">
57
- <map>
58
- <entry key="MAIN">
59
- <value>
60
- <State />
61
- </value>
62
- </entry>
63
- </map>
64
- </option>
65
- </component>
66
- </project>