@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
@@ -1,2 +1,14 @@
1
- export function Clipboard(props: any): React.JSX.Element;
2
1
  import React from 'react';
2
+ type ClipboardProps = {
3
+ showIcon: boolean;
4
+ text: string;
5
+ children: React.ReactNode;
6
+ onCopy: (text: string, result: any) => void;
7
+ options: {
8
+ debug: boolean;
9
+ message: string;
10
+ format: string;
11
+ };
12
+ };
13
+ export default function Clipboard(props: ClipboardProps): React.JSX.Element;
14
+ export {};
@@ -1,2 +1,2 @@
1
- import { Clipboard } from "./clipboard.jsx";
1
+ import Clipboard from "./clipboard";
2
2
  export default Clipboard;
@@ -6,140 +6,6 @@ var React = require('react');
6
6
  var icons = require('@helpdice/icons');
7
7
  var theme = require('@helpdice/theme');
8
8
 
9
- function deselectCurrent () {
10
- var selection = document.getSelection();
11
- if (!selection.rangeCount) {
12
- return function () {};
13
- }
14
- var active = document.activeElement;
15
- var ranges = [];
16
- for (var i = 0; i < selection.rangeCount; i++) {
17
- ranges.push(selection.getRangeAt(i));
18
- }
19
- switch (active.tagName.toUpperCase() // .toUpperCase handles XHTML
20
- ) {
21
- case 'INPUT':
22
- case 'TEXTAREA':
23
- active.blur();
24
- break;
25
- default:
26
- active = null;
27
- break;
28
- }
29
- selection.removeAllRanges();
30
- return function () {
31
- selection.type === 'Caret' && selection.removeAllRanges();
32
- if (!selection.rangeCount) {
33
- ranges.forEach(function (range) {
34
- selection.addRange(range);
35
- });
36
- }
37
- active && active.focus();
38
- };
39
- }
40
-
41
- var clipboardToIE11Formatting = {
42
- 'text/plain': 'Text',
43
- 'text/html': 'Url',
44
- "default": 'Text'
45
- };
46
- var defaultMessage = 'Copy to clipboard: #{key}, Enter';
47
- function format(message) {
48
- var copyKey = (/mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl') + '+C';
49
- return message.replace(/#{\s*key\s*}/g, copyKey);
50
- }
51
- function copy(text, options) {
52
- var debug,
53
- message,
54
- reselectPrevious,
55
- range,
56
- selection,
57
- mark,
58
- success = false;
59
- if (!options) {
60
- options = {};
61
- }
62
- debug = options.debug || false;
63
- try {
64
- reselectPrevious = deselectCurrent();
65
- range = document.createRange();
66
- selection = document.getSelection();
67
- mark = document.createElement('span');
68
- mark.textContent = text;
69
- // avoid screen readers from reading out loud the text
70
- mark.ariaHidden = 'true';
71
- // reset user styles for span element
72
- mark.style.all = 'unset';
73
- // prevents scrolling to the end of the page
74
- mark.style.position = 'fixed';
75
- mark.style.top = 0;
76
- mark.style.clip = 'rect(0, 0, 0, 0)';
77
- // used to preserve spaces and line breaks
78
- mark.style.whiteSpace = 'pre';
79
- // do not inherit user-select (it may be `none`)
80
- mark.style.webkitUserSelect = 'text';
81
- mark.style.MozUserSelect = 'text';
82
- mark.style.msUserSelect = 'text';
83
- mark.style.userSelect = 'text';
84
- mark.addEventListener('copy', function (e) {
85
- e.stopPropagation();
86
- if (options.format) {
87
- e.preventDefault();
88
- if (typeof e.clipboardData === 'undefined') {
89
- // IE 11
90
- debug && console.warn('unable to use e.clipboardData');
91
- debug && console.warn('trying IE specific stuff');
92
- window.clipboardData.clearData();
93
- var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting['default'];
94
- window.clipboardData.setData(format, text);
95
- } else {
96
- // all other browsers
97
- e.clipboardData.clearData();
98
- e.clipboardData.setData(options.format, text);
99
- }
100
- }
101
- if (options.onCopy) {
102
- e.preventDefault();
103
- options.onCopy(e.clipboardData);
104
- }
105
- });
106
- document.body.appendChild(mark);
107
- range.selectNodeContents(mark);
108
- selection.addRange(range);
109
- var successful = document.execCommand('copy');
110
- if (!successful) {
111
- throw new Error('copy command was unsuccessful');
112
- }
113
- success = true;
114
- } catch (err) {
115
- debug && console.error('unable to copy using execCommand: ', err);
116
- debug && console.warn('trying IE specific stuff');
117
- try {
118
- window.clipboardData.setData(options.format || 'text', text);
119
- options.onCopy && options.onCopy(window.clipboardData);
120
- success = true;
121
- } catch (err) {
122
- debug && console.error('unable to copy using clipboardData: ', err);
123
- debug && console.error('falling back to prompt');
124
- message = format('message' in options ? options.message : defaultMessage);
125
- window.prompt(message, text);
126
- }
127
- } finally {
128
- if (selection) {
129
- if (typeof selection.removeRange == 'function') {
130
- selection.removeRange(range);
131
- } else {
132
- selection.removeAllRanges();
133
- }
134
- }
135
- if (mark) {
136
- document.body.removeChild(mark);
137
- }
138
- reselectPrevious();
139
- }
140
- return success;
141
- }
142
-
143
9
  function _arrayLikeToArray(r, a) {
144
10
  (null == a || a > r.length) && (a = r.length);
145
11
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -309,6 +175,140 @@ function _unsupportedIterableToArray(r, a) {
309
175
  }
310
176
  }
311
177
 
178
+ function deselectCurrent () {
179
+ var selection = document.getSelection();
180
+ if (!selection.rangeCount) {
181
+ return function () {};
182
+ }
183
+ var active = document.activeElement;
184
+ var ranges = [];
185
+ for (var i = 0; i < selection.rangeCount; i++) {
186
+ ranges.push(selection.getRangeAt(i));
187
+ }
188
+ switch (active.tagName.toUpperCase() // .toUpperCase handles XHTML
189
+ ) {
190
+ case 'INPUT':
191
+ case 'TEXTAREA':
192
+ active.blur();
193
+ break;
194
+ default:
195
+ active = null;
196
+ break;
197
+ }
198
+ selection.removeAllRanges();
199
+ return function () {
200
+ selection.type === 'Caret' && selection.removeAllRanges();
201
+ if (!selection.rangeCount) {
202
+ ranges.forEach(function (range) {
203
+ selection.addRange(range);
204
+ });
205
+ }
206
+ active && active.focus();
207
+ };
208
+ }
209
+
210
+ var clipboardToIE11Formatting = {
211
+ 'text/plain': 'Text',
212
+ 'text/html': 'Url',
213
+ "default": 'Text'
214
+ };
215
+ var defaultMessage = 'Copy to clipboard: #{key}, Enter';
216
+ function format(message) {
217
+ var copyKey = (/mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl') + '+C';
218
+ return message.replace(/#{\s*key\s*}/g, copyKey);
219
+ }
220
+ function copy(text, options) {
221
+ var debug,
222
+ message,
223
+ reselectPrevious,
224
+ range,
225
+ selection,
226
+ mark,
227
+ success = false;
228
+ if (!options) {
229
+ options = {};
230
+ }
231
+ debug = options.debug || false;
232
+ try {
233
+ reselectPrevious = deselectCurrent();
234
+ range = document.createRange();
235
+ selection = document.getSelection();
236
+ mark = document.createElement('span');
237
+ mark.textContent = text;
238
+ // avoid screen readers from reading out loud the text
239
+ mark.ariaHidden = 'true';
240
+ // reset user styles for span element
241
+ mark.style.all = 'unset';
242
+ // prevents scrolling to the end of the page
243
+ mark.style.position = 'fixed';
244
+ mark.style.top = 0;
245
+ mark.style.clip = 'rect(0, 0, 0, 0)';
246
+ // used to preserve spaces and line breaks
247
+ mark.style.whiteSpace = 'pre';
248
+ // do not inherit user-select (it may be `none`)
249
+ mark.style.webkitUserSelect = 'text';
250
+ mark.style.MozUserSelect = 'text';
251
+ mark.style.msUserSelect = 'text';
252
+ mark.style.userSelect = 'text';
253
+ mark.addEventListener('copy', function (e) {
254
+ e.stopPropagation();
255
+ if (options.format) {
256
+ e.preventDefault();
257
+ if (typeof e.clipboardData === 'undefined') {
258
+ // IE 11
259
+ debug && console.warn('unable to use e.clipboardData');
260
+ debug && console.warn('trying IE specific stuff');
261
+ window.clipboardData.clearData();
262
+ var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting['default'];
263
+ window.clipboardData.setData(format, text);
264
+ } else {
265
+ // all other browsers
266
+ e.clipboardData.clearData();
267
+ e.clipboardData.setData(options.format, text);
268
+ }
269
+ }
270
+ if (options.onCopy) {
271
+ e.preventDefault();
272
+ options.onCopy(e.clipboardData);
273
+ }
274
+ });
275
+ document.body.appendChild(mark);
276
+ range.selectNodeContents(mark);
277
+ selection.addRange(range);
278
+ var successful = document.execCommand('copy');
279
+ if (!successful) {
280
+ throw new Error('copy command was unsuccessful');
281
+ }
282
+ success = true;
283
+ } catch (err) {
284
+ debug && console.error('unable to copy using execCommand: ', err);
285
+ debug && console.warn('trying IE specific stuff');
286
+ try {
287
+ window.clipboardData.setData(options.format || 'text', text);
288
+ options.onCopy && options.onCopy(window.clipboardData);
289
+ success = true;
290
+ } catch (err) {
291
+ debug && console.error('unable to copy using clipboardData: ', err);
292
+ debug && console.error('falling back to prompt');
293
+ message = format('message' in options ? options.message : defaultMessage);
294
+ window.prompt(message, text);
295
+ }
296
+ } finally {
297
+ if (selection) {
298
+ if (typeof selection.removeRange == 'function') {
299
+ selection.removeRange(range);
300
+ } else {
301
+ selection.removeAllRanges();
302
+ }
303
+ }
304
+ if (mark) {
305
+ document.body.removeChild(mark);
306
+ }
307
+ reselectPrevious();
308
+ }
309
+ return success;
310
+ }
311
+
312
312
  function getDefaultExportFromCjs (x) {
313
313
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
314
314
  }
@@ -1597,7 +1597,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
1597
1597
  disabled: disabled,
1598
1598
  onClick: clickHandler
1599
1599
  }, props, {
1600
- 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) || "")
1600
+ 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) || "")
1601
1601
  }), loading && /*#__PURE__*/React.createElement(ButtonLoading, {
1602
1602
  color: color
1603
1603
  }), childrenWithIcon, dripShow && /*#__PURE__*/React.createElement(ButtonDrip, {
@@ -1606,25 +1606,13 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
1606
1606
  color: dripColor,
1607
1607
  onCompleted: dripCompletedHandle
1608
1608
  }), /*#__PURE__*/React.createElement(_JSXStyle, {
1609
- id: "960361315",
1609
+ id: "905110486",
1610
1610
  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']
1611
1611
  }, ".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;}}")));
1612
1612
  });
1613
1613
  ButtonComponent.displayName = 'Button';
1614
1614
  var Button = withScale(ButtonComponent);
1615
1615
 
1616
- // type ClipboardProps = {
1617
- // showIcon: boolean,
1618
- // text: string,
1619
- // children: React.ReactNode,
1620
- // onCopy: (text: string, result: any) => void,
1621
- // options: {
1622
- // debug: boolean,
1623
- // message: string,
1624
- // format: string
1625
- // }
1626
- // }
1627
-
1628
1616
  // export function Clipboard(props: ClipboardProps) {
1629
1617
  // const { setToast } = useToasts();
1630
1618
  // const { showIcon, text, onCopy, options: options, children, } = props;
@@ -1676,7 +1664,6 @@ function Clipboard(props) {
1676
1664
  children = props.children;
1677
1665
  var elem = React.Children.only(children);
1678
1666
  var _onClick = function onClick() {
1679
- var _elem$props;
1680
1667
  var result = copy(text, options);
1681
1668
  if (result) {
1682
1669
  setToast({
@@ -1688,9 +1675,9 @@ function Clipboard(props) {
1688
1675
  }
1689
1676
 
1690
1677
  // ✅ Safely invoke child's onClick if it exists
1691
- if (/*#__PURE__*/React.isValidElement(elem) && typeof (elem === null || elem === void 0 || (_elem$props = elem.props) === null || _elem$props === void 0 ? void 0 : _elem$props.onClick) === 'function') {
1692
- elem.props.onClick();
1693
- }
1678
+ // if (isValidElement(elem) && typeof elem?.props?.onClick === 'function') {
1679
+ // elem.props.onClick();
1680
+ // }
1694
1681
  };
1695
1682
 
1696
1683
  // If showIcon is true, render the child + a copy icon button
@@ -1707,11 +1694,9 @@ function Clipboard(props) {
1707
1694
  }
1708
1695
 
1709
1696
  // Otherwise, make the entire div clickable for copy
1710
- return /*#__PURE__*/React.createElement("div", {
1711
- onClick: function onClick() {
1712
- return _onClick;
1713
- }
1714
- }, elem);
1697
+ return /*#__PURE__*/React.cloneElement(/*#__PURE__*/React.createElement("div", {
1698
+ onClick: _onClick
1699
+ }, elem), _objectSpread2({}, props));
1715
1700
  }
1716
1701
 
1717
1702
  exports.default = Clipboard;
@@ -1,12 +1,11 @@
1
1
  import Grid from './grid-base';
2
- import Container from './grid-container';
2
+ import GridContainer from './grid-container';
3
3
  export type GridComponentType = typeof Grid & {
4
- Container: typeof Container;
4
+ Container: typeof GridContainer;
5
5
  };
6
6
  export type { GridContainerProps } from './grid-container';
7
7
  export type { GridProps } from './grid-base';
8
8
  export type { GridBreakpointsValue } from './basic-item';
9
9
  export type { GridAlignContent, GridAlignItems, GridDirection, GridJustify, GridWrap, } from './grid-types';
10
- export { Container };
11
10
  declare const _default: GridComponentType;
12
11
  export default _default;
@@ -958,5 +958,4 @@ var GridContainer = withScale(GridContainerComponent);
958
958
 
959
959
  Grid.Container = GridContainer;
960
960
 
961
- exports.Container = GridContainer;
962
961
  exports.default = Grid;
package/dist/index.d.ts CHANGED
@@ -36,8 +36,9 @@ export type { DrawerProps } from './drawer';
36
36
  export { default as Fieldset } from './fieldset';
37
37
  export type { FieldsetProps, FieldsetTitleProps, FieldsetSubtitleProps, FieldsetGroupProps, FieldsetFooterProps, FieldsetContentProps, } from './fieldset';
38
38
  export * from './form';
39
- export { default as Grid, Container } from './grid';
39
+ export { default as Grid } from './grid';
40
40
  export type { GridProps, GridContainerProps } from './grid';
41
+ export { default as Container } from './container';
41
42
  export { default as HtmlRenderer } from './html-renderer';
42
43
  export { default as Image } from './image';
43
44
  export type { ImageProps, ImageBrowserProps } from './image';
@@ -61,7 +62,6 @@ export { default as Popover } from './popover';
61
62
  export type { PopoverProps, PopoverItemProps } from './popover';
62
63
  export { default as List } from './list';
63
64
  export { default as Menu } from './menu';
64
- export { default as PhoneInput } from './phone-input';
65
65
  export { default as Progress } from './progress';
66
66
  export type { ProgressProps } from './progress';
67
67
  export { default as Radio } from './radio';
@@ -125,8 +125,7 @@ export { default as Swipe } from './swipe';
125
125
  export type { SwipeProps } from './swipe';
126
126
  export { Carousel } from './carousal';
127
127
  export type { CarouselProps } from './carousal';
128
- export { default as CurrencyInput } from './currency-input';
129
- export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './currency-input';
128
+ export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './input/currency-input';
130
129
  export { default as useToasts } from './use-toasts';
131
130
  export type { Toast, ToastInput, ToastAction, ToastLayout } from './use-toasts';
132
131
  export { default as Clipboard } from './copy-to-clipboard';