@xaypay/tui 0.0.116 → 0.0.117

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
@@ -603,7 +603,7 @@ const TD = ({
603
603
  cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto'
604
604
  },
605
605
  onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
606
- }, item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default.createElement("span", {
606
+ }, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default.createElement("span", {
607
607
  style: {
608
608
  display: 'block',
609
609
  position: 'relative'
@@ -1841,6 +1841,7 @@ const Input = ({
1841
1841
  boxShadowHover,
1842
1842
  errorClassName,
1843
1843
  errorAnimation,
1844
+ labelFontFamily,
1844
1845
  phoneAlignItems,
1845
1846
  errorLineHeight,
1846
1847
  labelLineHeight,
@@ -2152,14 +2153,14 @@ const Input = ({
2152
2153
  return /*#__PURE__*/React__default.createElement("div", {
2153
2154
  className: classProps
2154
2155
  }, label ? /*#__PURE__*/React__default.createElement("label", {
2155
- className: `${styles$9['input-title']}`,
2156
2156
  style: {
2157
2157
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
2158
2158
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
2159
2159
  display: labelDisplay ? labelDisplay : configStyles.INPUT.labelDisplay,
2160
2160
  fontWeight: labelWeight ? labelWeight : configStyles.INPUT.labelWeight,
2161
2161
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
2162
- marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
2162
+ marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom,
2163
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.INPUT.labelFontFamily
2163
2164
  }
2164
2165
  }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
2165
2166
  className: `${styles$9['input-content']}`,
@@ -2299,6 +2300,7 @@ Input.propTypes = {
2299
2300
  errorPosition: PropTypes.string,
2300
2301
  boxShadowHover: PropTypes.string,
2301
2302
  errorClassName: PropTypes.string,
2303
+ labelFontFamily: PropTypes.string,
2302
2304
  telErrorMessage: PropTypes.string,
2303
2305
  backgroundColor: PropTypes.string,
2304
2306
  phoneAlignItems: PropTypes.string,
@@ -2533,6 +2535,7 @@ const Select = ({
2533
2535
  labelDisplay,
2534
2536
  labelFontSize,
2535
2537
  labelLineHeight,
2538
+ labelFontFamily,
2536
2539
  labelMarginBottom,
2537
2540
  labelTextTransform,
2538
2541
  cursor,
@@ -2689,6 +2692,7 @@ const Select = ({
2689
2692
  display: labelDisplay ? labelDisplay : configStyles.SELECT.labelDisplay,
2690
2693
  fontSize: labelFontSize ? labelFontSize : configStyles.SELECT.labelFontSize,
2691
2694
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.SELECT.labelLineHeight,
2695
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.SELECT.labelFontFamily,
2692
2696
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
2693
2697
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
2694
2698
  }
@@ -2812,6 +2816,7 @@ Select.propTypes = {
2812
2816
  labelDisplay: PropTypes.string,
2813
2817
  labelFontSize: PropTypes.string,
2814
2818
  labelLineHeight: PropTypes.string,
2819
+ labelFontFamily: PropTypes.string,
2815
2820
  labelMarginBottom: PropTypes.string,
2816
2821
  labelTextTransform: PropTypes.string,
2817
2822
  cursor: PropTypes.string,
@@ -3376,8 +3381,8 @@ const Captcha = ({
3376
3381
  }) => {
3377
3382
  const [rangeNumber, setRangeNumber] = useState(0);
3378
3383
  const [rangeProgress, setRangeProgress] = useState(0);
3379
- const classProps = classnames(className ? className : configStyles.CAPTCHA.className);
3380
3384
  const configStyles = compereConfigs();
3385
+ const classProps = classnames(className ? className : configStyles.CAPTCHA.className);
3381
3386
  const handleRange = e => {
3382
3387
  const value = e.target.value;
3383
3388
  getRange(value);
@@ -3553,7 +3558,7 @@ for (let i = 0; i < 256; ++i) {
3553
3558
  function unsafeStringify(arr, offset = 0) {
3554
3559
  // Note: Be careful editing this code! It's been tuned for performance
3555
3560
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
3556
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
3561
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
3557
3562
  }
3558
3563
 
3559
3564
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
@@ -4593,6 +4598,7 @@ const Textarea = ({
4593
4598
  placeholder,
4594
4599
  labelDisplay,
4595
4600
  errorMessage,
4601
+ labelFontFamily,
4596
4602
  backgroundColor,
4597
4603
  borderFocusColor,
4598
4604
  borderHoverColor,
@@ -4603,8 +4609,8 @@ const Textarea = ({
4603
4609
  const [isHover, setIsHover] = useState(false);
4604
4610
  const [isFocus, setIsFocus] = useState(false);
4605
4611
  const [innerValue, setInnerValue] = useState('');
4606
- const classProps = classnames(className ? className : configStyles.TEXTAREA.className);
4607
4612
  const configStyles = compereConfigs();
4613
+ const classProps = classnames(className ? className : configStyles.TEXTAREA.className);
4608
4614
  const handleMouseEnter = () => {
4609
4615
  setIsHover(true);
4610
4616
  };
@@ -4659,6 +4665,7 @@ const Textarea = ({
4659
4665
  display: 'flex',
4660
4666
  alignItems: 'center',
4661
4667
  justifyContent: label ? 'space-between' : 'flex-end',
4668
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.TEXTAREA.labelFontFamily,
4662
4669
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.TEXTAREA.labelMarginBottom
4663
4670
  }
4664
4671
  }, label ? /*#__PURE__*/React__default.createElement("label", {
@@ -4737,6 +4744,7 @@ Textarea.propTypes = {
4737
4744
  placeholder: PropTypes.string,
4738
4745
  errorMessage: PropTypes.string,
4739
4746
  labelDisplay: PropTypes.string,
4747
+ labelFontFamily: PropTypes.string,
4740
4748
  backgroundColor: PropTypes.string,
4741
4749
  showCharacterCount: PropTypes.bool,
4742
4750
  value: PropTypes.string.isRequired,
@@ -5251,6 +5259,7 @@ const NewAutocomplete = ({
5251
5259
  contentPosition,
5252
5260
  contentTopColor,
5253
5261
  labelLineHeight,
5262
+ labelFontFamily,
5254
5263
  contentDirection,
5255
5264
  contentTopWeight,
5256
5265
  contentTopRadius,
@@ -5461,6 +5470,7 @@ const NewAutocomplete = ({
5461
5470
  fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
5462
5471
  display: labelDisplay ? labelDisplay : configStyles.NEWAUTOCOMPLETE.labelDisplay,
5463
5472
  fontWeight: labelWeight ? labelWeight : configStyles.NEWAUTOCOMPLETE.labelWeight,
5473
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.NEWAUTOCOMPLETE.labelFontFamily,
5464
5474
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.NEWAUTOCOMPLETE.labelLineHeight,
5465
5475
  maxWidth: contentTopMaxWidth ? contentTopMaxWidth : configStyles.NEWAUTOCOMPLETE.contentTopMaxWidth,
5466
5476
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
@@ -5539,6 +5549,7 @@ NewAutocomplete.propTypes = {
5539
5549
  labelLineHeight: PropTypes.string,
5540
5550
  contentTopColor: PropTypes.string,
5541
5551
  change: PropTypes.func.isRequired,
5552
+ labelFontFamily: PropTypes.string,
5542
5553
  contentDirection: PropTypes.string,
5543
5554
  contentTopWeight: PropTypes.number,
5544
5555
  contentTopRadius: PropTypes.string,
package/dist/index.js CHANGED
@@ -633,7 +633,7 @@ const TD = ({
633
633
  cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto'
634
634
  },
635
635
  onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
636
- }, item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default["default"].createElement("span", {
636
+ }, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default["default"].createElement("span", {
637
637
  style: {
638
638
  display: 'block',
639
639
  position: 'relative'
@@ -1871,6 +1871,7 @@ const Input = ({
1871
1871
  boxShadowHover,
1872
1872
  errorClassName,
1873
1873
  errorAnimation,
1874
+ labelFontFamily,
1874
1875
  phoneAlignItems,
1875
1876
  errorLineHeight,
1876
1877
  labelLineHeight,
@@ -2182,14 +2183,14 @@ const Input = ({
2182
2183
  return /*#__PURE__*/React__default["default"].createElement("div", {
2183
2184
  className: classProps
2184
2185
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
2185
- className: `${styles$9['input-title']}`,
2186
2186
  style: {
2187
2187
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
2188
2188
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
2189
2189
  display: labelDisplay ? labelDisplay : configStyles.INPUT.labelDisplay,
2190
2190
  fontWeight: labelWeight ? labelWeight : configStyles.INPUT.labelWeight,
2191
2191
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
2192
- marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
2192
+ marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom,
2193
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.INPUT.labelFontFamily
2193
2194
  }
2194
2195
  }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
2195
2196
  className: `${styles$9['input-content']}`,
@@ -2329,6 +2330,7 @@ Input.propTypes = {
2329
2330
  errorPosition: PropTypes__default["default"].string,
2330
2331
  boxShadowHover: PropTypes__default["default"].string,
2331
2332
  errorClassName: PropTypes__default["default"].string,
2333
+ labelFontFamily: PropTypes__default["default"].string,
2332
2334
  telErrorMessage: PropTypes__default["default"].string,
2333
2335
  backgroundColor: PropTypes__default["default"].string,
2334
2336
  phoneAlignItems: PropTypes__default["default"].string,
@@ -2563,6 +2565,7 @@ const Select = ({
2563
2565
  labelDisplay,
2564
2566
  labelFontSize,
2565
2567
  labelLineHeight,
2568
+ labelFontFamily,
2566
2569
  labelMarginBottom,
2567
2570
  labelTextTransform,
2568
2571
  cursor,
@@ -2719,6 +2722,7 @@ const Select = ({
2719
2722
  display: labelDisplay ? labelDisplay : configStyles.SELECT.labelDisplay,
2720
2723
  fontSize: labelFontSize ? labelFontSize : configStyles.SELECT.labelFontSize,
2721
2724
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.SELECT.labelLineHeight,
2725
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.SELECT.labelFontFamily,
2722
2726
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
2723
2727
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
2724
2728
  }
@@ -2842,6 +2846,7 @@ Select.propTypes = {
2842
2846
  labelDisplay: PropTypes__default["default"].string,
2843
2847
  labelFontSize: PropTypes__default["default"].string,
2844
2848
  labelLineHeight: PropTypes__default["default"].string,
2849
+ labelFontFamily: PropTypes__default["default"].string,
2845
2850
  labelMarginBottom: PropTypes__default["default"].string,
2846
2851
  labelTextTransform: PropTypes__default["default"].string,
2847
2852
  cursor: PropTypes__default["default"].string,
@@ -3406,8 +3411,8 @@ const Captcha = ({
3406
3411
  }) => {
3407
3412
  const [rangeNumber, setRangeNumber] = React.useState(0);
3408
3413
  const [rangeProgress, setRangeProgress] = React.useState(0);
3409
- const classProps = classnames__default["default"](className ? className : configStyles.CAPTCHA.className);
3410
3414
  const configStyles = compereConfigs();
3415
+ const classProps = classnames__default["default"](className ? className : configStyles.CAPTCHA.className);
3411
3416
  const handleRange = e => {
3412
3417
  const value = e.target.value;
3413
3418
  getRange(value);
@@ -3583,7 +3588,7 @@ for (let i = 0; i < 256; ++i) {
3583
3588
  function unsafeStringify(arr, offset = 0) {
3584
3589
  // Note: Be careful editing this code! It's been tuned for performance
3585
3590
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
3586
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
3591
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
3587
3592
  }
3588
3593
 
3589
3594
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
@@ -4623,6 +4628,7 @@ const Textarea = ({
4623
4628
  placeholder,
4624
4629
  labelDisplay,
4625
4630
  errorMessage,
4631
+ labelFontFamily,
4626
4632
  backgroundColor,
4627
4633
  borderFocusColor,
4628
4634
  borderHoverColor,
@@ -4633,8 +4639,8 @@ const Textarea = ({
4633
4639
  const [isHover, setIsHover] = React.useState(false);
4634
4640
  const [isFocus, setIsFocus] = React.useState(false);
4635
4641
  const [innerValue, setInnerValue] = React.useState('');
4636
- const classProps = classnames__default["default"](className ? className : configStyles.TEXTAREA.className);
4637
4642
  const configStyles = compereConfigs();
4643
+ const classProps = classnames__default["default"](className ? className : configStyles.TEXTAREA.className);
4638
4644
  const handleMouseEnter = () => {
4639
4645
  setIsHover(true);
4640
4646
  };
@@ -4689,6 +4695,7 @@ const Textarea = ({
4689
4695
  display: 'flex',
4690
4696
  alignItems: 'center',
4691
4697
  justifyContent: label ? 'space-between' : 'flex-end',
4698
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.TEXTAREA.labelFontFamily,
4692
4699
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.TEXTAREA.labelMarginBottom
4693
4700
  }
4694
4701
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
@@ -4767,6 +4774,7 @@ Textarea.propTypes = {
4767
4774
  placeholder: PropTypes__default["default"].string,
4768
4775
  errorMessage: PropTypes__default["default"].string,
4769
4776
  labelDisplay: PropTypes__default["default"].string,
4777
+ labelFontFamily: PropTypes__default["default"].string,
4770
4778
  backgroundColor: PropTypes__default["default"].string,
4771
4779
  showCharacterCount: PropTypes__default["default"].bool,
4772
4780
  value: PropTypes__default["default"].string.isRequired,
@@ -5281,6 +5289,7 @@ const NewAutocomplete = ({
5281
5289
  contentPosition,
5282
5290
  contentTopColor,
5283
5291
  labelLineHeight,
5292
+ labelFontFamily,
5284
5293
  contentDirection,
5285
5294
  contentTopWeight,
5286
5295
  contentTopRadius,
@@ -5491,6 +5500,7 @@ const NewAutocomplete = ({
5491
5500
  fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
5492
5501
  display: labelDisplay ? labelDisplay : configStyles.NEWAUTOCOMPLETE.labelDisplay,
5493
5502
  fontWeight: labelWeight ? labelWeight : configStyles.NEWAUTOCOMPLETE.labelWeight,
5503
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.NEWAUTOCOMPLETE.labelFontFamily,
5494
5504
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.NEWAUTOCOMPLETE.labelLineHeight,
5495
5505
  maxWidth: contentTopMaxWidth ? contentTopMaxWidth : configStyles.NEWAUTOCOMPLETE.contentTopMaxWidth,
5496
5506
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
@@ -5569,6 +5579,7 @@ NewAutocomplete.propTypes = {
5569
5579
  labelLineHeight: PropTypes__default["default"].string,
5570
5580
  contentTopColor: PropTypes__default["default"].string,
5571
5581
  change: PropTypes__default["default"].func.isRequired,
5582
+ labelFontFamily: PropTypes__default["default"].string,
5572
5583
  contentDirection: PropTypes__default["default"].string,
5573
5584
  contentTopWeight: PropTypes__default["default"].number,
5574
5585
  contentTopRadius: PropTypes__default["default"].string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -11,9 +11,8 @@ import styles from './captcha.module.css'
11
11
  export const Captcha = ({ size, color, range, label, className, getRange }) => {
12
12
  const [rangeNumber, setRangeNumber] = useState(0)
13
13
  const [rangeProgress, setRangeProgress] = useState(0)
14
- const classProps = classnames(className ? className : configStyles.CAPTCHA.className)
15
-
16
14
  const configStyles = compereConfigs()
15
+ const classProps = classnames(className ? className : configStyles.CAPTCHA.className)
17
16
 
18
17
  const handleRange = (e) => {
19
18
  const value = e.target.value
@@ -64,6 +64,7 @@ export const Input = ({
64
64
  boxShadowHover,
65
65
  errorClassName,
66
66
  errorAnimation,
67
+ labelFontFamily,
67
68
  phoneAlignItems,
68
69
  errorLineHeight,
69
70
  labelLineHeight,
@@ -424,7 +425,6 @@ export const Input = ({
424
425
  <div className={classProps}>
425
426
  {label ? (
426
427
  <label
427
- className={`${styles['input-title']}`}
428
428
  style={{
429
429
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
430
430
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
@@ -432,6 +432,7 @@ export const Input = ({
432
432
  fontWeight: labelWeight ? labelWeight : configStyles.INPUT.labelWeight,
433
433
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
434
434
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom,
435
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.INPUT.labelFontFamily,
435
436
  }}
436
437
  >
437
438
  {label}
@@ -662,6 +663,7 @@ Input.propTypes = {
662
663
  errorPosition: PropTypes.string,
663
664
  boxShadowHover: PropTypes.string,
664
665
  errorClassName: PropTypes.string,
666
+ labelFontFamily: PropTypes.string,
665
667
  telErrorMessage: PropTypes.string,
666
668
  backgroundColor: PropTypes.string,
667
669
  phoneAlignItems: PropTypes.string,
@@ -35,6 +35,7 @@ export const NewAutocomplete = ({
35
35
  contentPosition,
36
36
  contentTopColor,
37
37
  labelLineHeight,
38
+ labelFontFamily,
38
39
  contentDirection,
39
40
  contentTopWeight,
40
41
  contentTopRadius,
@@ -392,6 +393,7 @@ export const NewAutocomplete = ({
392
393
  fontSize: labelSize ? labelSize : configStyles.NEWAUTOCOMPLETE.labelSize,
393
394
  display: labelDisplay ? labelDisplay : configStyles.NEWAUTOCOMPLETE.labelDisplay,
394
395
  fontWeight: labelWeight ? labelWeight : configStyles.NEWAUTOCOMPLETE.labelWeight,
396
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.NEWAUTOCOMPLETE.labelFontFamily,
395
397
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.NEWAUTOCOMPLETE.labelLineHeight,
396
398
  maxWidth: contentTopMaxWidth
397
399
  ? contentTopMaxWidth
@@ -530,6 +532,7 @@ NewAutocomplete.propTypes = {
530
532
  labelLineHeight: PropTypes.string,
531
533
  contentTopColor: PropTypes.string,
532
534
  change: PropTypes.func.isRequired,
535
+ labelFontFamily: PropTypes.string,
533
536
  contentDirection: PropTypes.string,
534
537
  contentTopWeight: PropTypes.number,
535
538
  contentTopRadius: PropTypes.string,
@@ -35,6 +35,7 @@ export const Select = ({
35
35
  labelDisplay,
36
36
  labelFontSize,
37
37
  labelLineHeight,
38
+ labelFontFamily,
38
39
  labelMarginBottom,
39
40
  labelTextTransform,
40
41
 
@@ -215,6 +216,7 @@ export const Select = ({
215
216
  display: labelDisplay ? labelDisplay : configStyles.SELECT.labelDisplay,
216
217
  fontSize: labelFontSize ? labelFontSize : configStyles.SELECT.labelFontSize,
217
218
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.SELECT.labelLineHeight,
219
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.SELECT.labelFontFamily,
218
220
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
219
221
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform,
220
222
  }}
@@ -490,6 +492,7 @@ Select.propTypes = {
490
492
  labelDisplay: PropTypes.string,
491
493
  labelFontSize: PropTypes.string,
492
494
  labelLineHeight: PropTypes.string,
495
+ labelFontFamily: PropTypes.string,
493
496
  labelMarginBottom: PropTypes.string,
494
497
  labelTextTransform: PropTypes.string,
495
498
 
@@ -252,7 +252,9 @@ const TD = ({
252
252
  : (_) => _
253
253
  }
254
254
  >
255
- {item.content ? (
255
+ {item.content === 0 ? (
256
+ item.content.toString()
257
+ ) : item.content ? (
256
258
  item.content
257
259
  ) : hasOwnerProperty(item, 'arrowComponent') ? (
258
260
  item.status === 'close' ? (
@@ -36,6 +36,7 @@ export const Textarea = ({
36
36
  placeholder,
37
37
  labelDisplay,
38
38
  errorMessage,
39
+ labelFontFamily,
39
40
  backgroundColor,
40
41
  borderFocusColor,
41
42
  borderHoverColor,
@@ -47,8 +48,8 @@ export const Textarea = ({
47
48
  const [isFocus, setIsFocus] = useState(false)
48
49
  const [innerValue, setInnerValue] = useState('')
49
50
 
50
- const classProps = classnames(className ? className : configStyles.TEXTAREA.className)
51
51
  const configStyles = compereConfigs()
52
+ const classProps = classnames(className ? className : configStyles.TEXTAREA.className)
52
53
 
53
54
  const handleMouseEnter = () => {
54
55
  setIsHover(true)
@@ -116,6 +117,7 @@ export const Textarea = ({
116
117
  display: 'flex',
117
118
  alignItems: 'center',
118
119
  justifyContent: label ? 'space-between' : 'flex-end',
120
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.TEXTAREA.labelFontFamily,
119
121
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.TEXTAREA.labelMarginBottom,
120
122
  }}
121
123
  >
@@ -238,6 +240,7 @@ Textarea.propTypes = {
238
240
  placeholder: PropTypes.string,
239
241
  errorMessage: PropTypes.string,
240
242
  labelDisplay: PropTypes.string,
243
+ labelFontFamily: PropTypes.string,
241
244
  backgroundColor: PropTypes.string,
242
245
  showCharacterCount: PropTypes.bool,
243
246
  value: PropTypes.string.isRequired,
@@ -182,7 +182,6 @@ import StackAlt from './assets/stackalt.svg';
182
182
  errorLineHeight: '19px', // for error message line height
183
183
  boxSizing: 'border-box', // for box sizing
184
184
  backgroundColor: 'white', // for input and also (if there exist left or right icons) icons block background color
185
- backgroundDisableColor: '#FBFBFB', // for input and also (if there exist left or right icons) icons block background color when input is disable
186
185
  color: 'rgb(60, 57, 62)', // for input color
187
186
  labelMarginBottom: '6px', // for label margin bottom
188
187
  phoneAlignItems: 'center', // for phone extention inside item, work when input type is tel
@@ -191,7 +190,9 @@ import StackAlt from './assets/stackalt.svg';
191
190
  phoneJustifyContent: 'center', // for phone extention inside item, work when input type is tel
192
191
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
193
192
  errorAnimationDuration: '240ms', // for animation duration (when have error message and errorAnimation prop is true)
193
+ backgroundDisableColor: '#FBFBFB', // for input and also (if there exist left or right icons) icons block background color when input is disable
194
194
  boxShadowHover: '0 0 0 2px #3c393e', // for border size and color in hover mode (set if you want to change it)
195
+ labelFontFamily: 'Arial, sans-serif', // for label font family
195
196
  }
196
197
  ```
197
198
 
@@ -339,6 +340,7 @@ import StackAlt from './assets/stackalt.svg';
339
340
  labelLineHeight: '22px', // for label line height
340
341
  labelMarginBottom: '6px', // for label margin bottom
341
342
  labelTextTransform: 'none', // for label text transform
343
+ labelFontFamily: 'Arial, sans-serif', // for label font family
342
344
 
343
345
  errorSize: '14px', // for error font size
344
346
  errorColor: 'rgb(238, 0, 0)', // for error color
@@ -447,6 +449,7 @@ import StackAlt from './assets/stackalt.svg';
447
449
  borderFocusColor: '#00236A', // for boredr color when focus action is happaning
448
450
  showCharacterCount: true, // for showing textarea character count ( set itself without configuration file)
449
451
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
452
+ labelFontFamily: 'Arial, sans-serif', s// for label font family
450
453
  }
451
454
  ```
452
455
 
@@ -462,6 +465,7 @@ import StackAlt from './assets/stackalt.svg';
462
465
  labelLineHeight: '22px', // for label line height
463
466
  labelMarginBottom: '6px', // for label margin bottom
464
467
  labelTextTransform: 'none', // for label text transform
468
+ labelFontFamily: 'Arial, sans-serif', // for label font family
465
469
 
466
470
  className: '', // for autocomplete class if it need
467
471
  searchCount: 3, // for autocomplete show result logic
package/tui.config.js CHANGED
@@ -68,6 +68,7 @@ module.exports = {
68
68
  phoneJustifyContent: 'center', // for phone extention inside item, work when input type is tel
69
69
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
70
70
  errorAnimationDuration: '240ms', // for animation duration (when have error message and errorAnimation prop is true)
71
+ labelFontFamily: 'Arial, sans-serif', // for label font family
71
72
  boxShadowHover: '0 0 0 2px #3c393e', // for border size and color in hover mode (set if you want to change it)
72
73
  },
73
74
  // default properties for <Tooltip /> component
@@ -196,6 +197,7 @@ module.exports = {
196
197
  labelLineHeight: '22px', // for label line height
197
198
  labelMarginBottom: '6px', // for label margin bottom
198
199
  labelTextTransform: 'none', // for label text transform
200
+ labelFontFamily: 'Arial, sans-serif', // for label font family
199
201
 
200
202
  errorSize: '14px', // for error font size
201
203
  errorColor: 'rgb(238, 0, 0)', // for error color
@@ -262,6 +264,7 @@ module.exports = {
262
264
  borderHoverColor: '#3C393E', // for border color when hover action is happaning
263
265
  borderFocusColor: '#00236A', // for boredr color when focus action is happaning
264
266
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
267
+ labelFontFamily: 'Arial, sans-serif', // for label font family
265
268
  },
266
269
  // default properties for <NewAutocomplete /> component
267
270
  NEWAUTOCOMPLETE: {
@@ -273,6 +276,7 @@ module.exports = {
273
276
  labelLineHeight: '22px', // for label line height
274
277
  labelMarginBottom: '6px', // for label margin bottom
275
278
  labelTextTransform: 'none', // for label text transform
279
+ labelFontFamily: 'Arial, sans-serif', // for label font family
276
280
 
277
281
  className: '', // for autocomplete class if it need
278
282
  searchCount: 3, // for autocomplete show result logic