@helpdice/ui 2.1.8 → 2.2.2

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.
Files changed (101) hide show
  1. package/dist/auto-complete/index.js +2147 -8
  2. package/dist/button/index.js +2 -2
  3. package/dist/carousal/index.js +2 -2
  4. package/dist/container/box.d.ts +47 -0
  5. package/dist/container/index.d.ts +2 -0
  6. package/dist/container/index.js +952 -0
  7. package/dist/copy-to-clipboard/clipboard.d.ts +13 -1
  8. package/dist/copy-to-clipboard/index.d.ts +1 -1
  9. package/dist/copy-to-clipboard/index.js +142 -157
  10. package/dist/grid/index.d.ts +2 -3
  11. package/dist/grid/index.js +0 -1
  12. package/dist/index.d.ts +3 -4
  13. package/dist/index.js +14693 -14649
  14. package/dist/input/index.d.ts +4 -0
  15. package/dist/input/index.js +2151 -9
  16. package/dist/input/phone-input/phone.d.ts +13 -0
  17. package/dist/modal/index.js +2 -2
  18. package/dist/placeholder/index.js +643 -8
  19. package/dist/table/index.js +3516 -1368
  20. package/dist/text/child.d.ts +1 -0
  21. package/dist/text/index.js +686 -8
  22. package/dist/text/text.d.ts +1 -0
  23. package/esm/button/button.js +2 -2
  24. package/esm/container/box.d.ts +47 -0
  25. package/esm/container/box.js +43 -0
  26. package/esm/container/index.d.ts +2 -0
  27. package/esm/container/index.js +2 -0
  28. package/esm/copy-to-clipboard/clipboard.d.ts +13 -1
  29. package/esm/copy-to-clipboard/clipboard.js +91 -0
  30. package/esm/copy-to-clipboard/index.d.ts +1 -1
  31. package/esm/copy-to-clipboard/index.js +1 -1
  32. package/esm/grid/index.d.ts +2 -3
  33. package/esm/grid/index.js +5 -3
  34. package/esm/index.d.ts +3 -4
  35. package/esm/index.js +4 -3
  36. package/esm/input/index.d.ts +4 -0
  37. package/esm/input/index.js +4 -0
  38. package/esm/input/phone-input/phone.d.ts +13 -0
  39. package/esm/input/phone-input/phone.js +166 -0
  40. package/esm/table/table-cell.js +2 -1
  41. package/esm/text/child.d.ts +1 -0
  42. package/esm/text/text.d.ts +1 -0
  43. package/esm/text/text.js +25 -3
  44. package/package.json +8 -15
  45. package/dist/currency-input/index.js +0 -862
  46. package/dist/phone-input/index.js +0 -2033
  47. package/dist/phone-input/phone.d.ts +0 -11
  48. package/esm/phone-input/phone.d.ts +0 -11
  49. package/esm/phone-input/phone.js +0 -161
  50. /package/dist/{currency-input → input/currency-input}/components/CurrencyInput.d.ts +0 -0
  51. /package/dist/{currency-input → input/currency-input}/components/CurrencyInputProps.d.ts +0 -0
  52. /package/dist/{currency-input → input/currency-input}/components/utils/cleanValue.d.ts +0 -0
  53. /package/dist/{currency-input → input/currency-input}/components/utils/escapeRegExp.d.ts +0 -0
  54. /package/dist/{currency-input → input/currency-input}/components/utils/fixedDecimalValue.d.ts +0 -0
  55. /package/dist/{currency-input → input/currency-input}/components/utils/formatValue.d.ts +0 -0
  56. /package/dist/{currency-input → input/currency-input}/components/utils/getLocaleConfig.d.ts +0 -0
  57. /package/dist/{currency-input → input/currency-input}/components/utils/getSuffix.d.ts +0 -0
  58. /package/dist/{currency-input → input/currency-input}/components/utils/index.d.ts +0 -0
  59. /package/dist/{currency-input → input/currency-input}/components/utils/isNumber.d.ts +0 -0
  60. /package/dist/{currency-input → input/currency-input}/components/utils/padTrimValue.d.ts +0 -0
  61. /package/dist/{currency-input → input/currency-input}/components/utils/parseAbbrValue.d.ts +0 -0
  62. /package/dist/{currency-input → input/currency-input}/components/utils/removeInvalidChars.d.ts +0 -0
  63. /package/dist/{currency-input → input/currency-input}/components/utils/removeSeparators.d.ts +0 -0
  64. /package/dist/{currency-input → input/currency-input}/components/utils/repositionCursor.d.ts +0 -0
  65. /package/dist/{currency-input → input/currency-input}/index.d.ts +0 -0
  66. /package/dist/{phone-input → input/phone-input}/index.d.ts +0 -0
  67. /package/esm/{currency-input → input/currency-input}/components/CurrencyInput.d.ts +0 -0
  68. /package/esm/{currency-input → input/currency-input}/components/CurrencyInput.js +0 -0
  69. /package/esm/{currency-input → input/currency-input}/components/CurrencyInputProps.d.ts +0 -0
  70. /package/esm/{currency-input → input/currency-input}/components/CurrencyInputProps.js +0 -0
  71. /package/esm/{currency-input → input/currency-input}/components/utils/addSeparators.js +0 -0
  72. /package/esm/{currency-input → input/currency-input}/components/utils/cleanValue.d.ts +0 -0
  73. /package/esm/{currency-input → input/currency-input}/components/utils/cleanValue.js +0 -0
  74. /package/esm/{currency-input → input/currency-input}/components/utils/escapeRegExp.d.ts +0 -0
  75. /package/esm/{currency-input → input/currency-input}/components/utils/escapeRegExp.js +0 -0
  76. /package/esm/{currency-input → input/currency-input}/components/utils/fixedDecimalValue.d.ts +0 -0
  77. /package/esm/{currency-input → input/currency-input}/components/utils/fixedDecimalValue.js +0 -0
  78. /package/esm/{currency-input → input/currency-input}/components/utils/formatValue.d.ts +0 -0
  79. /package/esm/{currency-input → input/currency-input}/components/utils/formatValue.js +0 -0
  80. /package/esm/{currency-input → input/currency-input}/components/utils/getLocaleConfig.d.ts +0 -0
  81. /package/esm/{currency-input → input/currency-input}/components/utils/getLocaleConfig.js +0 -0
  82. /package/esm/{currency-input → input/currency-input}/components/utils/getSuffix.d.ts +0 -0
  83. /package/esm/{currency-input → input/currency-input}/components/utils/getSuffix.js +0 -0
  84. /package/esm/{currency-input → input/currency-input}/components/utils/index.d.ts +0 -0
  85. /package/esm/{currency-input → input/currency-input}/components/utils/index.js +0 -0
  86. /package/esm/{currency-input → input/currency-input}/components/utils/isNumber.d.ts +0 -0
  87. /package/esm/{currency-input → input/currency-input}/components/utils/isNumber.js +0 -0
  88. /package/esm/{currency-input → input/currency-input}/components/utils/padTrimValue.d.ts +0 -0
  89. /package/esm/{currency-input → input/currency-input}/components/utils/padTrimValue.js +0 -0
  90. /package/esm/{currency-input → input/currency-input}/components/utils/parseAbbrValue.d.ts +0 -0
  91. /package/esm/{currency-input → input/currency-input}/components/utils/parseAbbrValue.js +0 -0
  92. /package/esm/{currency-input → input/currency-input}/components/utils/removeInvalidChars.d.ts +0 -0
  93. /package/esm/{currency-input → input/currency-input}/components/utils/removeInvalidChars.js +0 -0
  94. /package/esm/{currency-input → input/currency-input}/components/utils/removeSeparators.d.ts +0 -0
  95. /package/esm/{currency-input → input/currency-input}/components/utils/removeSeparators.js +0 -0
  96. /package/esm/{currency-input → input/currency-input}/components/utils/repositionCursor.d.ts +0 -0
  97. /package/esm/{currency-input → input/currency-input}/components/utils/repositionCursor.js +0 -0
  98. /package/esm/{currency-input → input/currency-input}/index.d.ts +0 -0
  99. /package/esm/{currency-input → input/currency-input}/index.js +0 -0
  100. /package/esm/{phone-input → input/phone-input}/index.d.ts +0 -0
  101. /package/esm/{phone-input → input/phone-input}/index.js +0 -0
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { InputTypes } from '..';
3
+ type PhoneInputProps = {
4
+ onChange: (data: string) => void;
5
+ value?: string;
6
+ fullWidth?: boolean;
7
+ children?: React.ReactNode;
8
+ country?: string;
9
+ placeholder?: string;
10
+ color?: InputTypes;
11
+ };
12
+ declare function PhoneInput({ onChange, value, country, placeholder, color: _color, children, fullWidth }: PhoneInputProps): React.JSX.Element;
13
+ export default PhoneInput;
@@ -1608,7 +1608,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
1608
1608
  disabled: disabled,
1609
1609
  onClick: clickHandler
1610
1610
  }, props, {
1611
- className: _JSXStyle.dynamic([["960361315", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor, events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', className) || "")
1611
+ className: _JSXStyle.dynamic([["905110486", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor, events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', className) || "")
1612
1612
  }), loading && /*#__PURE__*/React.createElement(ButtonLoading, {
1613
1613
  color: color
1614
1614
  }), childrenWithIcon, dripShow && /*#__PURE__*/React.createElement(ButtonDrip, {
@@ -1617,7 +1617,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
1617
1617
  color: dripColor,
1618
1618
  onCompleted: dripCompletedHandle
1619
1619
  }), /*#__PURE__*/React.createElement(_JSXStyle, {
1620
- id: "960361315",
1620
+ id: "905110486",
1621
1621
  dynamic: [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor, events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']
1622
1622
  }, ".btn.__jsx-style-dynamic-selector{box-sizing:border-box;display:inline-block;line-height:".concat(SCALES.height(2.5), ";border-radius:").concat(round ? '50%' : theme$1.layout.radius, ";font-weight:400;font-size:").concat(SCALES.font(0.875), ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none;text-transform:capitalize;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;white-space:nowrap;-webkit-transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;position:relative;overflow:hidden;color:").concat(color, ";background-color:").concat(bg, ";border:1px solid ").concat(shadow ? 'transparent' : border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(shadow ? btnShadow : 'none', ";--helpdice-ui-button-icon-padding:").concat(SCALES.pl(0.727), ";--helpdice-ui-button-height:").concat(SCALES.height(2.5), ";--helpdice-ui-button-color:").concat(color, ";--helpdice-ui-button-bg:").concat(bg, ";min-width:").concat(auto ? 'min-content' : SCALES.width(10.5), ";width:").concat(auto ? 'auto' : 'initial', ";height:").concat(SCALES.height(2.5), ";padding:").concat(SCALES.pt(0), " ").concat(paddingRight, " ").concat(SCALES.pb(0), " ").concat(paddingLeft, ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.btn.__jsx-style-dynamic-selector:hover,.btn.__jsx-style-dynamic-selector:focus{color:").concat(hover.color, ";--helpdice-ui-button-color:").concat(hover.color, ";background-color:").concat(hover.bg, ";border-color:").concat(hover.border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(btnShadow, ";}.btn.__jsx-style-dynamic-selector .text{position:relative;z-index:1;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;line-height:inherit;top:-1px;}.btn.__jsx-style-dynamic-selector .text p,.btn.__jsx-style-dynamic-selector .text pre,.btn.__jsx-style-dynamic-selector .text div{margin:0;}.ripple.__jsx-style-dynamic-selector{position:absolute;border-radius:50%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;background-color:rgba(0,0,0,0.3);pointer-events:none;z-index:1;}@-webkit-keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}@keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}")));
1623
1623
  });