@helpdice/ui 1.7.3 → 1.7.4
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/PhoneInput/index.d.ts +2 -0
- package/dist/PhoneInput/index.js +1999 -0
- package/dist/PhoneInput/phone.d.ts +11 -0
- package/dist/badge/index.js +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1409 -4
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +1 -0
- package/esm/PhoneInput/index.d.ts +2 -0
- package/esm/PhoneInput/index.js +2 -0
- package/esm/PhoneInput/phone.d.ts +11 -0
- package/esm/PhoneInput/phone.js +158 -0
- package/esm/badge/badge.js +4 -4
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/input/index.d.ts +1 -0
- package/esm/input/index.js +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputTypes } from 'components/input';
|
|
3
|
+
type PhoneInputProps = {
|
|
4
|
+
onChange: (data: string) => void;
|
|
5
|
+
value?: string;
|
|
6
|
+
country?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
color?: InputTypes;
|
|
9
|
+
};
|
|
10
|
+
declare const PhoneInput: ({ onChange, value, country, placeholder, color: _color }: PhoneInputProps) => React.JSX.Element;
|
|
11
|
+
export default PhoneInput;
|
package/dist/badge/index.js
CHANGED
|
@@ -1233,11 +1233,11 @@ var BadgeComponent = function BadgeComponent(_ref) {
|
|
|
1233
1233
|
dot: dot
|
|
1234
1234
|
}, className);
|
|
1235
1235
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
1236
|
-
className: _JSXStyle.dynamic([["
|
|
1236
|
+
className: _JSXStyle.dynamic([["120113192", [bg, _color, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.25), SCALES.pr(0.5375), SCALES.pb(0.30), SCALES.pl(0.5375), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.py(0.25), SCALES.px(0.25)]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
1237
1237
|
}), !dot && children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
1238
|
-
id: "
|
|
1239
|
-
dynamic: [bg, _color, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.25), SCALES.pr(0.
|
|
1240
|
-
}, ".badge.__jsx-style-dynamic-selector{display:inline-block;border-radius:16px;font-variant:tabular-nums;line-height:1;vertical-align:middle;background-color:".concat(bg, ";color:").concat(_color, ";border:0;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0.25), " ").concat(SCALES.pr(0.
|
|
1238
|
+
id: "120113192",
|
|
1239
|
+
dynamic: [bg, _color, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.25), SCALES.pr(0.5375), SCALES.pb(0.30), SCALES.pl(0.5375), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.py(0.25), SCALES.px(0.25)]
|
|
1240
|
+
}, ".badge.__jsx-style-dynamic-selector{display:inline-block;border-radius:16px;font-variant:tabular-nums;line-height:1;vertical-align:middle;background-color:".concat(bg, ";color:").concat(_color, ";border:0;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0.25), " ").concat(SCALES.pr(0.5375), " ").concat(SCALES.pb(0.30), " ").concat(SCALES.pl(0.5375), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.dot.__jsx-style-dynamic-selector{padding:").concat(SCALES.py(0.25), " ").concat(SCALES.px(0.25), ";border-radius:50%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}")));
|
|
1241
1241
|
};
|
|
1242
1242
|
BadgeComponent.displayName = 'Badge';
|
|
1243
1243
|
var Badge = withScale(BadgeComponent);
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export type { GridProps, GridContainerProps } from './grid';
|
|
|
44
44
|
export { default as HtmlRenderer } from './html-renderer';
|
|
45
45
|
export { default as Image } from './image';
|
|
46
46
|
export type { ImageProps, ImageBrowserProps } from './image';
|
|
47
|
-
export { default as Input } from './input';
|
|
47
|
+
export { default as Input, getColors } from './input';
|
|
48
48
|
export type { InputProps, InputPasswordProps } from './input';
|
|
49
49
|
export { default as Keyboard } from './keyboard';
|
|
50
50
|
export type { KeyboardProps } from './keyboard';
|
|
@@ -64,6 +64,7 @@ export { default as Popover } from './popover';
|
|
|
64
64
|
export type { PopoverProps, PopoverItemProps } from './popover';
|
|
65
65
|
export { default as List } from './list';
|
|
66
66
|
export { default as Menu } from './menu';
|
|
67
|
+
export { default as PhoneInput } from './PhoneInput';
|
|
67
68
|
export { default as Progress } from './progress';
|
|
68
69
|
export type { ProgressProps } from './progress';
|
|
69
70
|
export { default as Radio } from './radio';
|