@open-condo/ui 2.30.1 → 2.31.0
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/components/Input/phone.d.ts +1 -0
- package/dist/components/Input/phone.d.ts.map +1 -1
- package/dist/components/Typography/paragraph.d.ts +2 -2
- package/dist/components/Typography/paragraph.d.ts.map +1 -1
- package/dist/components/Typography/text.d.ts +2 -2
- package/dist/components/Typography/text.d.ts.map +1 -1
- package/dist/index.js +18 -2
- package/dist/style-vars/variables.css +1 -1
- package/dist/style-vars/variables.less +1 -1
- package/package.json +3 -2
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { PhoneInputProps as DefaultPhoneInputProps } from 'react-phone-input-2';
|
|
3
3
|
export type PhoneInputProps = Pick<DefaultPhoneInputProps, 'country' | 'placeholder' | 'onChange' | 'value' | 'onMount' | 'disabled'> & {
|
|
4
4
|
inputProps?: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'style' | 'value' | 'onChange'>;
|
|
5
|
+
id?: string;
|
|
5
6
|
};
|
|
6
7
|
declare const Phone: React.FC<PhoneInputProps>;
|
|
7
8
|
export { Phone, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone.d.ts","sourceRoot":"","sources":["../../../src/components/Input/phone.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"phone.d.ts","sourceRoot":"","sources":["../../../src/components/Input/phone.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAA;AAKnD,OAAO,KAAK,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAKpF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,EACzD,SAAS,GACP,aAAa,GACb,UAAU,GACV,OAAO,GACP,SAAS,GACT,UAAU,CAAC,GAAG;IACZ,UAAU,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,CAAA;IAC9F,EAAE,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmCpC,CAAA;AAID,OAAO,EACH,KAAK,GACR,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TEXT_SIZES, TEXT_TYPES } from './constants';
|
|
3
3
|
import type { ParagraphProps as DefaultParagraphProps } from 'antd/lib/typography/Paragraph';
|
|
4
|
-
export type TypographyParagraphProps = Omit<DefaultParagraphProps, 'keyboard' | 'type' | 'editable' | 'copyable' | 'mark' | 'className' | 'prefixCls' | 'style'
|
|
4
|
+
export type TypographyParagraphProps = Omit<DefaultParagraphProps, 'keyboard' | 'type' | 'editable' | 'copyable' | 'mark' | 'className' | 'prefixCls' | 'style'> & {
|
|
5
5
|
type?: typeof TEXT_TYPES[number];
|
|
6
6
|
size?: typeof TEXT_SIZES[number];
|
|
7
7
|
};
|
|
8
|
-
declare const Paragraph: React.ForwardRefExoticComponent<Omit<DefaultParagraphProps, "className" | "prefixCls" | "style" | "
|
|
8
|
+
declare const Paragraph: React.ForwardRefExoticComponent<Omit<DefaultParagraphProps, "className" | "prefixCls" | "style" | "mark" | "type" | "keyboard" | "editable" | "copyable"> & {
|
|
9
9
|
type?: (typeof TEXT_TYPES)[number];
|
|
10
10
|
size?: (typeof TEXT_SIZES)[number];
|
|
11
11
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/paragraph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7E,OAAO,KAAK,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAE5F,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,qBAAqB,EACjE,UAAU,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/paragraph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7E,OAAO,KAAK,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAE5F,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,qBAAqB,EACjE,UAAU,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,CAAC,GAAG;IACT,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;CACnC,CAAA;AAED,QAAA,MAAM,SAAS;WAJJ,CAAA,OAAO,UAAU,EAAC,MAAM,CAAC;WACzB,CAAA,OAAO,UAAU,EAAC,MAAM,CAAC;yCAqBlC,CAAA;AAIF,OAAO,EACH,SAAS,GACZ,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TEXT_SIZES, TEXT_TYPES } from './constants';
|
|
3
3
|
import type { TextProps as DefaultTextProps } from 'antd/lib/typography/Text';
|
|
4
|
-
export type TypographyTextProps = Omit<DefaultTextProps, 'keyboard' | 'type' | 'editable' | 'copyable' | 'mark' | 'className' | 'prefixCls' | 'style'
|
|
4
|
+
export type TypographyTextProps = Omit<DefaultTextProps, 'keyboard' | 'type' | 'editable' | 'copyable' | 'mark' | 'className' | 'prefixCls' | 'style'> & {
|
|
5
5
|
type?: typeof TEXT_TYPES[number];
|
|
6
6
|
size?: typeof TEXT_SIZES[number];
|
|
7
7
|
lineWrapping?: 'break-spaces';
|
|
8
8
|
};
|
|
9
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<DefaultTextProps, "className" | "prefixCls" | "style" | "
|
|
9
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<DefaultTextProps, "className" | "prefixCls" | "style" | "mark" | "type" | "keyboard" | "editable" | "copyable"> & {
|
|
10
10
|
type?: (typeof TEXT_TYPES)[number];
|
|
11
11
|
size?: (typeof TEXT_SIZES)[number];
|
|
12
12
|
lineWrapping?: "break-spaces";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/text.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAwB,MAAM,aAAa,CAAA;AAEnG,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAI7E,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,EACvD,UAAU,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/text.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAwB,MAAM,aAAa,CAAA;AAEnG,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAI7E,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,EACvD,UAAU,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,CAAC,GAAG;IACT,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;IAChC,YAAY,CAAC,EAAE,cAAc,CAAA;CAChC,CAAA;AAED,QAAA,MAAM,IAAI;WALC,CAAA,OAAO,UAAU,EAAC,MAAM,CAAC;WACzB,CAAA,OAAO,UAAU,EAAC,MAAM,CAAC;mBACjB,cAAc;yCA+B/B,CAAA;AAIF,OAAO,EACH,IAAI,GACP,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -47376,7 +47376,7 @@ var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
|
|
|
47376
47376
|
var isString = __webpack_require__(8138);
|
|
47377
47377
|
var isString_default = /*#__PURE__*/__webpack_require__.n(isString);
|
|
47378
47378
|
;// CONCATENATED MODULE: ./package.json
|
|
47379
|
-
var package_namespaceObject = {"rE":"2.
|
|
47379
|
+
var package_namespaceObject = {"rE":"2.31.0"};
|
|
47380
47380
|
;// CONCATENATED MODULE: ./src/components/_utils/analytics.ts
|
|
47381
47381
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
47382
47382
|
|
|
@@ -64049,10 +64049,14 @@ password_Password.displayName = 'PasswordInput';
|
|
|
64049
64049
|
var lib = __webpack_require__(53305);
|
|
64050
64050
|
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
64051
64051
|
;// CONCATENATED MODULE: ./src/components/Input/phone.tsx
|
|
64052
|
-
var phone_excluded = ["country", "placeholder", "onChange", "disabled"];
|
|
64052
|
+
var phone_excluded = ["country", "placeholder", "onChange", "disabled", "id", "inputProps"];
|
|
64053
64053
|
|
|
64054
64054
|
function phone_extends() { phone_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return phone_extends.apply(this, arguments); }
|
|
64055
64055
|
|
|
64056
|
+
function phone_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
64057
|
+
|
|
64058
|
+
function phone_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? phone_ownKeys(Object(source), !0).forEach(function (key) { phone_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : phone_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
64059
|
+
|
|
64056
64060
|
function phone_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
64057
64061
|
|
|
64058
64062
|
function phone_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = phone_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -64072,6 +64076,8 @@ var Phone = function Phone(props) {
|
|
|
64072
64076
|
onChange = props.onChange,
|
|
64073
64077
|
_props$disabled = props.disabled,
|
|
64074
64078
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
64079
|
+
id = props.id,
|
|
64080
|
+
inputProps = props.inputProps,
|
|
64075
64081
|
restProps = phone_objectWithoutProperties(props, phone_excluded);
|
|
64076
64082
|
|
|
64077
64083
|
var containerClasses = node_modules_classnames_default()("".concat(INPUT_CLASS_PREFIX, "-phone"), phone_defineProperty({}, "".concat(INPUT_CLASS_PREFIX, "-phone-disabled"), disabled));
|
|
@@ -64082,7 +64088,17 @@ var Phone = function Phone(props) {
|
|
|
64082
64088
|
onChange(value, data, event, formattedValue);
|
|
64083
64089
|
}
|
|
64084
64090
|
}, [onChange]);
|
|
64091
|
+
var combinedInputProps = (0,external_react_.useMemo)(function () {
|
|
64092
|
+
var props = phone_objectSpread({}, inputProps);
|
|
64093
|
+
|
|
64094
|
+
if (id) {
|
|
64095
|
+
props.id = id;
|
|
64096
|
+
}
|
|
64097
|
+
|
|
64098
|
+
return props;
|
|
64099
|
+
}, [id, inputProps]);
|
|
64085
64100
|
return /*#__PURE__*/external_react_default().createElement((lib_default()), phone_extends({}, restProps, {
|
|
64101
|
+
inputProps: combinedInputProps,
|
|
64086
64102
|
onChange: internalOnChange,
|
|
64087
64103
|
containerClass: containerClasses,
|
|
64088
64104
|
disabled: disabled,
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"React",
|
|
9
9
|
"components"
|
|
10
10
|
],
|
|
11
|
-
"version": "2.
|
|
11
|
+
"version": "2.31.0",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+https://github.com/open-condo-software/condo.git",
|
|
@@ -28,13 +28,14 @@
|
|
|
28
28
|
"not IE 10"
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build:deps": "turbo build --filter
|
|
31
|
+
"build:deps": "turbo build --filter=@open-condo/ui^...",
|
|
32
32
|
"build:styles": "find src/tokens -mindepth 1 -not -name 'tokens.json' -delete && node bin/prepare-tokens.js && node bin/buildStyleVars/runner.js --web less css",
|
|
33
33
|
"build:colors": "find src/colors -mindepth 1 -not -name 'index.ts' -delete && node bin/generate-colors.js",
|
|
34
34
|
"build:tokens": "yarn build:styles && yarn build:colors",
|
|
35
35
|
"build:lib": "webpack --config webpack.prod.js && tsc --project tsconfig.prod.json",
|
|
36
36
|
"build": "yarn build:tokens && yarn build:lib",
|
|
37
37
|
"build:sb": "storybook build",
|
|
38
|
+
"build:chromatic": "yarn build:deps && yarn build:tokens && yarn build:sb",
|
|
38
39
|
"dev": "yarn build:deps && yarn build:tokens && storybook dev -p 6006",
|
|
39
40
|
"watch": "yarn build:deps && yarn build:tokens && webpack --config webpack.dev.js"
|
|
40
41
|
},
|