@xaypay/tui 0.2.5 → 0.2.7

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.es.js CHANGED
@@ -2276,7 +2276,7 @@ function styleInject(css, ref) {
2276
2276
  }
2277
2277
  }
2278
2278
 
2279
- var css_248z$a = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{cursor:pointer;margin:0 0 8px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}";
2279
+ var css_248z$a = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}";
2280
2280
  var styles$9 = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO"};
2281
2281
  styleInject(css_248z$a);
2282
2282
 
@@ -2574,7 +2574,8 @@ const TD = ({
2574
2574
  key: `__${innerItemIndex}__`,
2575
2575
  style: {
2576
2576
  display: 'flex',
2577
- justifyContent: 'center'
2577
+ justifyContent: 'center',
2578
+ marginTop: innerItemIndex === 0 ? '28px' : '0px'
2578
2579
  }
2579
2580
  }, innerItem.content.map((contInnerItem, contInnerIndex) => {
2580
2581
  return /*#__PURE__*/React__default.createElement("p", {
@@ -5268,7 +5269,7 @@ Toast.propTypes = {
5268
5269
  type: PropTypes.oneOf(Object.values(ToasterType)).isRequired
5269
5270
  };
5270
5271
 
5271
- let toastify;
5272
+ let toastify = document.getElementById('toastify');
5272
5273
  let path = window.location.href;
5273
5274
  let wWidth = window.innerWidth;
5274
5275
  const removeToast = ref => {
@@ -5297,7 +5298,9 @@ const createToast = ({
5297
5298
  }) => {
5298
5299
  let toastParentBlock;
5299
5300
  if (!toastify) {
5300
- toastify = document.getElementById('toastify');
5301
+ toastify = document.createElement('div');
5302
+ toastify.setAttribute('id', 'toastify');
5303
+ document.body.appendChild(toastify);
5301
5304
  }
5302
5305
  const toastBlock = document.createElement('div');
5303
5306
  toastBlock.style.position = 'relative';
@@ -5324,8 +5327,8 @@ const createToast = ({
5324
5327
  toastParentBlock.style.zIndex = 999999999999;
5325
5328
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
5326
5329
  toastParentBlock.setAttribute('id', styles$5[position]);
5327
- toastParentBlock && toastParentBlock.appendChild(toastBlock);
5328
- toastify && toastify.appendChild(toastParentBlock);
5330
+ toastParentBlock.appendChild(toastBlock);
5331
+ toastify.appendChild(toastParentBlock);
5329
5332
  } else {
5330
5333
  document.getElementById(styles$5[position]).appendChild(toastBlock);
5331
5334
  }
@@ -5408,7 +5411,8 @@ const Toaster = ({
5408
5411
  window.addEventListener('popstate', () => {
5409
5412
  if (path !== window.location.href) {
5410
5413
  if (!toastify) {
5411
- toastify = document.getElementById('toastify');
5414
+ toastify = document.createElement('div');
5415
+ toastify.setAttribute('id', 'toastify');
5412
5416
  }
5413
5417
  if (toastify.hasChildNodes()) {
5414
5418
  toastify.innerHTML = '';
package/dist/index.js CHANGED
@@ -2307,7 +2307,7 @@ function styleInject(css, ref) {
2307
2307
  }
2308
2308
  }
2309
2309
 
2310
- var css_248z$a = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{cursor:pointer;margin:0 0 8px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}";
2310
+ var css_248z$a = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}";
2311
2311
  var styles$9 = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO"};
2312
2312
  styleInject(css_248z$a);
2313
2313
 
@@ -2605,7 +2605,8 @@ const TD = ({
2605
2605
  key: `__${innerItemIndex}__`,
2606
2606
  style: {
2607
2607
  display: 'flex',
2608
- justifyContent: 'center'
2608
+ justifyContent: 'center',
2609
+ marginTop: innerItemIndex === 0 ? '28px' : '0px'
2609
2610
  }
2610
2611
  }, innerItem.content.map((contInnerItem, contInnerIndex) => {
2611
2612
  return /*#__PURE__*/React__default["default"].createElement("p", {
@@ -5299,7 +5300,7 @@ Toast.propTypes = {
5299
5300
  type: PropTypes__default["default"].oneOf(Object.values(ToasterType)).isRequired
5300
5301
  };
5301
5302
 
5302
- let toastify;
5303
+ let toastify = document.getElementById('toastify');
5303
5304
  let path = window.location.href;
5304
5305
  let wWidth = window.innerWidth;
5305
5306
  const removeToast = ref => {
@@ -5328,7 +5329,9 @@ const createToast = ({
5328
5329
  }) => {
5329
5330
  let toastParentBlock;
5330
5331
  if (!toastify) {
5331
- toastify = document.getElementById('toastify');
5332
+ toastify = document.createElement('div');
5333
+ toastify.setAttribute('id', 'toastify');
5334
+ document.body.appendChild(toastify);
5332
5335
  }
5333
5336
  const toastBlock = document.createElement('div');
5334
5337
  toastBlock.style.position = 'relative';
@@ -5355,8 +5358,8 @@ const createToast = ({
5355
5358
  toastParentBlock.style.zIndex = 999999999999;
5356
5359
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
5357
5360
  toastParentBlock.setAttribute('id', styles$5[position]);
5358
- toastParentBlock && toastParentBlock.appendChild(toastBlock);
5359
- toastify && toastify.appendChild(toastParentBlock);
5361
+ toastParentBlock.appendChild(toastBlock);
5362
+ toastify.appendChild(toastParentBlock);
5360
5363
  } else {
5361
5364
  document.getElementById(styles$5[position]).appendChild(toastBlock);
5362
5365
  }
@@ -5439,7 +5442,8 @@ const Toaster = ({
5439
5442
  window.addEventListener('popstate', () => {
5440
5443
  if (path !== window.location.href) {
5441
5444
  if (!toastify) {
5442
- toastify = document.getElementById('toastify');
5445
+ toastify = document.createElement('div');
5446
+ toastify.setAttribute('id', 'toastify');
5443
5447
  }
5444
5448
  if (toastify.hasChildNodes()) {
5445
5449
  toastify.innerHTML = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",