@proprioo/salatim 28.4.3 → 29.0.1
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/CHANGELOG.md +8 -0
- package/lib/forms/index.d.ts +1 -1
- package/lib/forms/index.js +3 -3
- package/lib/forms/index.js.map +1 -1
- package/lib/forms/src/errorForm/ErrorForm.styles.d.ts +1 -0
- package/lib/forms/src/errorForm/ErrorForm.styles.js +16 -0
- package/lib/forms/src/errorForm/ErrorForm.styles.js.map +1 -0
- package/lib/forms/src/errorForm/ErrorFormLayout.d.ts +6 -0
- package/lib/forms/src/errorForm/ErrorFormLayout.js +11 -0
- package/lib/forms/src/errorForm/ErrorFormLayout.js.map +1 -0
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js +5 -5
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js.map +1 -1
- package/lib/forms/src/userForm/UserForm.js +10 -10
- package/lib/forms/src/userForm/UserForm.js.map +1 -1
- package/lib/index.js +235 -235
- package/lib/index.js.map +1 -1
- package/lib/ui/src/button/Button.js +1 -1
- package/lib/ui/src/button/Button.js.map +1 -1
- package/lib/ui/src/button/Button.test.js +0 -4
- package/lib/ui/src/button/Button.test.js.map +1 -1
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.d.ts +1 -1
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.d.ts +1 -1
- package/package.json +2 -2
- package/lib/forms/src/userForm/UserForm.styles.d.ts +0 -3
- package/lib/forms/src/userForm/UserForm.styles.js +0 -16
- package/lib/forms/src/userForm/UserForm.styles.js.map +0 -1
|
@@ -40,7 +40,7 @@ const Button_styles_1 = require("./Button.styles");
|
|
|
40
40
|
const Button = (_a) => {
|
|
41
41
|
var { appearance = Button_interfaces_1.ButtonAppearance.PRIMARY, icon, iconPosition = Button_interfaces_1.IconPosition.RIGHT, label, rounded = false, size = Button_interfaces_1.ButtonSizes.LARGE, theme = Button_interfaces_1.ButtonTheme.ORANGE } = _a, rest = __rest(_a, ["appearance", "icon", "iconPosition", "label", "rounded", "size", "theme"]);
|
|
42
42
|
return (react_1.default.createElement(Button_styles_1.Layout, Object.assign({}, Object.assign({ appearance, icon, iconPosition, rounded, size, theme }, rest), { "aria-label": label }),
|
|
43
|
-
icon && (react_1.default.createElement(Button_styles_1.IconWrapper, Object.assign({}, { appearance, iconPosition, size, theme }
|
|
43
|
+
icon && (react_1.default.createElement(Button_styles_1.IconWrapper, Object.assign({}, { appearance, iconPosition, size, theme }), (0, react_1.isValidElement)(icon)
|
|
44
44
|
? (0, react_1.cloneElement)(icon, {
|
|
45
45
|
'aria-hidden': true,
|
|
46
46
|
focusable: false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../packages/ui/src/button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAMe;AAEf,2DAK6B;AAC7B,mDAAmE;AAgBnE,MAAM,MAAM,GAAoB,CAAC,EASnB,EAAE,EAAE;QATe,EAC/B,UAAU,GAAG,oCAAgB,CAAC,OAAO,EACrC,IAAI,EACJ,YAAY,GAAG,gCAAY,CAAC,KAAK,EACjC,KAAK,EACL,OAAO,GAAG,KAAK,EACf,IAAI,GAAG,+BAAW,CAAC,KAAK,EACxB,KAAK,GAAG,+BAAW,CAAC,MAAM,OAEd,EADT,IAAI,cARwB,2EAShC,CADQ;IACU,OAAA,CACjB,8BAAC,sBAAM,oCACC,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,IAAK,IAAI,mBACvD,KAAK;QAEhB,IAAI,IAAI,CACP,8BAAC,2BAAW,
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../packages/ui/src/button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAMe;AAEf,2DAK6B;AAC7B,mDAAmE;AAgBnE,MAAM,MAAM,GAAoB,CAAC,EASnB,EAAE,EAAE;QATe,EAC/B,UAAU,GAAG,oCAAgB,CAAC,OAAO,EACrC,IAAI,EACJ,YAAY,GAAG,gCAAY,CAAC,KAAK,EACjC,KAAK,EACL,OAAO,GAAG,KAAK,EACf,IAAI,GAAG,+BAAW,CAAC,KAAK,EACxB,KAAK,GAAG,+BAAW,CAAC,MAAM,OAEd,EADT,IAAI,cARwB,2EAShC,CADQ;IACU,OAAA,CACjB,8BAAC,sBAAM,oCACC,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,IAAK,IAAI,mBACvD,KAAK;QAEhB,IAAI,IAAI,CACP,8BAAC,2BAAW,oBAAK,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,GACvD,IAAA,sBAAc,EAAC,IAAI,CAAC;YACnB,CAAC,CAAC,IAAA,oBAAY,EAAC,IAAoB,EAAE;gBACjC,aAAa,EAAE,IAAI;gBACnB,SAAS,EAAE,KAAK;aACjB,CAAC;YACJ,CAAC,CAAC,IAAI,CACI,CACf;QACA,CAAC,OAAO,IAAI,8BAAC,2BAAW,iBAAW,OAAO,IAAE,KAAK,CAAe,CAC1D,CACV,CAAA;CAAA,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
|
@@ -31,22 +31,18 @@ describe('Button component', () => {
|
|
|
31
31
|
const tree = react_test_renderer_1.default.create(react_1.default.createElement(Button_1.default, Object.assign({}, defaultProps))).toJSON();
|
|
32
32
|
(0, react_2.render)(react_1.default.createElement(Button_1.default, Object.assign({}, defaultProps)));
|
|
33
33
|
expect(react_2.screen.getByRole('button')).toBeInTheDocument();
|
|
34
|
-
expect(react_2.screen.queryByTestId('icon-left')).not.toBeInTheDocument();
|
|
35
|
-
expect(react_2.screen.queryByTestId('icon-right')).not.toBeInTheDocument();
|
|
36
34
|
expect(tree).toMatchSnapshot();
|
|
37
35
|
});
|
|
38
36
|
it('should render icon right by default', () => {
|
|
39
37
|
const props = Object.assign(Object.assign({}, defaultProps), { icon: react_1.default.createElement(EmoticonCool, null) });
|
|
40
38
|
const tree = react_test_renderer_1.default.create(react_1.default.createElement(Button_1.default, Object.assign({}, props))).toJSON();
|
|
41
39
|
(0, react_2.render)(react_1.default.createElement(Button_1.default, Object.assign({}, props)));
|
|
42
|
-
expect(react_2.screen.getByTestId('icon-right')).toBeInTheDocument();
|
|
43
40
|
expect(tree).toMatchSnapshot();
|
|
44
41
|
});
|
|
45
42
|
it('should render icon with left position', () => {
|
|
46
43
|
const props = Object.assign(Object.assign({}, defaultProps), { icon: react_1.default.createElement(EmoticonCool, null), iconPosition: Button_interfaces_1.IconPosition.LEFT });
|
|
47
44
|
const tree = react_test_renderer_1.default.create(react_1.default.createElement(Button_1.default, Object.assign({}, props))).toJSON();
|
|
48
45
|
(0, react_2.render)(react_1.default.createElement(Button_1.default, Object.assign({}, props)));
|
|
49
|
-
expect(react_2.screen.getByTestId('icon-left')).toBeInTheDocument();
|
|
50
46
|
expect(tree).toMatchSnapshot();
|
|
51
47
|
});
|
|
52
48
|
it('should render text', () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.test.js","sourceRoot":"","sources":["../../../../packages/ui/src/button/Button.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,8EAA2C;AAE3C,kDAAwD;AACxD,6EAAoD;AAEpD,qDAA6B;AAC7B,sDAA+C;AAC/C,2DAAmD;AACnD,mDAA+C;AAE/C,MAAM,EAAE,YAAY,EAAE,GAAG,eAAK,CAAC;AAE/B,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAE9B,MAAM,YAAY,GAAgB;IAChC,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,WAAW;CACrB,CAAC;AAEF,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,yBAAyB,E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AM,EAAE,CAAC;QAE7D,IAAA,cAAM,EAAC,8BAAC,gBAAM,oBAAK,KAAK,EAAI,CAAC,CAAC;QAE9B,MAAM,CAAC,cAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAC9D,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,GAAS,EAAE;QACtC,IAAA,cAAM,EAAC,8BAAC,gBAAM,oBAAK,YAAY,EAAI,CAAC,CAAC;QAErC,MAAM,oBAAS,CAAC,KAAK,CAAC,cAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;QAElD,MAAM,CAAC,WAAW,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACzC,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,CAAC,IAAA,4BAAY,EAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { GenericInputProps } from '../../../utils';
|
|
3
3
|
export interface GmapsAutocompleteProps extends GenericInputProps {
|
|
4
4
|
value: string;
|
|
5
|
-
country?: string;
|
|
5
|
+
country?: string | string[];
|
|
6
6
|
id?: string;
|
|
7
7
|
types?: string[];
|
|
8
8
|
withGeocodeType?: boolean;
|
|
@@ -4,7 +4,7 @@ import { FC } from 'react';
|
|
|
4
4
|
import { GenericInputProps } from '../../../utils';
|
|
5
5
|
export interface GmapsGeocodeProps extends GenericInputProps {
|
|
6
6
|
value: string;
|
|
7
|
-
country?: string;
|
|
7
|
+
country?: string | string[];
|
|
8
8
|
id?: string;
|
|
9
9
|
types?: string[];
|
|
10
10
|
withGeocodeType?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proprioo/salatim",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.1",
|
|
4
4
|
"description": "Proprioo component library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"@proprioo/hokkaido": "^2.12.1",
|
|
114
|
-
"date-fns": "^2.
|
|
114
|
+
"date-fns": "^2.29.3",
|
|
115
115
|
"moment": "^2.29.1",
|
|
116
116
|
"polished": "^4.2.2",
|
|
117
117
|
"react": "^18.2.0",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const Layout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const InputWithError: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const ErrorLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ErrorLayout = exports.InputWithError = exports.Layout = void 0;
|
|
7
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
const utils_1 = require("../../../utils");
|
|
9
|
-
exports.Layout = styled_components_1.default.div ``;
|
|
10
|
-
exports.InputWithError = styled_components_1.default.div ``;
|
|
11
|
-
exports.ErrorLayout = styled_components_1.default.div `
|
|
12
|
-
${utils_1.paragraphs.bodyLight2};
|
|
13
|
-
color: ${utils_1.colors.red.base};
|
|
14
|
-
margin-top: ${(0, utils_1.convertPxToRem)(8)};
|
|
15
|
-
`;
|
|
16
|
-
//# sourceMappingURL=UserForm.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserForm.styles.js","sourceRoot":"","sources":["../../../../packages/forms/src/userForm/UserForm.styles.ts"],"names":[],"mappings":";;;;;;AAAA,0EAAuC;AAEvC,0CAAoE;AAEvD,QAAA,MAAM,GAAG,2BAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAEtB,QAAA,cAAc,GAAG,2BAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAE9B,QAAA,WAAW,GAAG,2BAAM,CAAC,GAAG,CAAA;IACjC,kBAAU,CAAC,UAAU;WACd,cAAM,CAAC,GAAG,CAAC,IAAI;gBACV,IAAA,sBAAc,EAAC,CAAC,CAAC;CAChC,CAAC"}
|