@qoretechnologies/reqore 0.29.2 → 0.29.3
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/__tests__/multiselect.test.tsx +59 -75
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/ControlGroup/index.d.ts.map +1 -1
- package/dist/components/ControlGroup/index.js +6 -4
- package/dist/components/ControlGroup/index.js.map +1 -1
- package/dist/components/Effect/index.d.ts +1 -0
- package/dist/components/Effect/index.d.ts.map +1 -1
- package/dist/components/Effect/index.js +2 -2
- package/dist/components/Effect/index.js.map +1 -1
- package/dist/components/MultiSelect/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +17 -19
- package/dist/components/MultiSelect/index.js.map +1 -1
- package/dist/components/Spacer/index.d.ts +15 -1
- package/dist/components/Spacer/index.d.ts.map +1 -1
- package/dist/components/Spacer/index.js +87 -10
- package/dist/components/Spacer/index.js.map +1 -1
- package/dist/constants/sizes.d.ts +1 -0
- package/dist/constants/sizes.d.ts.map +1 -1
- package/dist/constants/sizes.js +1 -0
- package/dist/constants/sizes.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/ControlGroup/index.tsx +26 -24
- package/src/components/Effect/index.tsx +5 -2
- package/src/components/MultiSelect/index.tsx +21 -23
- package/src/components/Spacer/index.tsx +90 -5
- package/src/constants/sizes.ts +1 -0
- package/src/index.tsx +1 -1
- package/src/mock/multiSelect.ts +1 -1
- package/src/stories/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/stories/ControlGroup/ControlGroup.stories.tsx +18 -3
- package/src/stories/MultiSelect/MultiSelect.stories.tsx +4 -1
- package/src/stories/Popover/Popover.stories.tsx +1 -1
- package/src/stories/Spacer/Spacer.stories.tsx +93 -0
- package/tests.json +1 -1
|
@@ -3,18 +3,95 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
-
var
|
|
7
|
-
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
41
|
+
var t = {};
|
|
42
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
43
|
+
t[p] = s[p];
|
|
44
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
46
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
47
|
+
t[p[i]] = s[p[i]];
|
|
48
|
+
}
|
|
49
|
+
return t;
|
|
8
50
|
};
|
|
9
51
|
exports.__esModule = true;
|
|
10
|
-
exports.ReqoreSpacer = void 0;
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
52
|
+
exports.ReqoreVerticalSpacer = exports.ReqoreHorizontalSpacer = exports.ReqoreSpacer = exports.StyledSpacer = void 0;
|
|
53
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
|
+
var react_1 = require("react");
|
|
55
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
56
|
+
var sizes_1 = require("../../constants/sizes");
|
|
57
|
+
var colors_1 = require("../../helpers/colors");
|
|
58
|
+
var useTheme_1 = require("../../hooks/useTheme");
|
|
59
|
+
var Effect_1 = require("../Effect");
|
|
60
|
+
exports.StyledSpacer = (0, styled_components_1["default"])(Effect_1.StyledEffect)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n\n background-color: ", ";\n flex-shrink: 0;\n"], ["\n ", "\n\n background-color: ", ";\n flex-shrink: 0;\n"])), function (_a) {
|
|
61
|
+
var horizontal = _a.horizontal, vertical = _a.vertical, width = _a.width, height = _a.height, lineSize = _a.lineSize;
|
|
62
|
+
if (horizontal) {
|
|
63
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-left: ", "px;\n margin-right: ", "px;\n width: ", "px;\n height: ", ";\n vertical-align: middle;\n display: inline-block;\n "], ["\n margin-left: ", "px;\n margin-right: ", "px;\n width: ", "px;\n height: ", ";\n vertical-align: middle;\n display: inline-block;\n "])), width / 2, width / 2, lineSize === 'none' ? 1 : sizes_1.SIZE_TO_NUMBER[lineSize], height ? "".concat(height, "px") : "".concat(sizes_1.TEXT_FROM_SIZE.normal, "px"));
|
|
64
|
+
}
|
|
65
|
+
if (vertical) {
|
|
66
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n height: ", "px;\n width: ", ";\n "], ["\n margin-top: ", "px;\n margin-bottom: ", "px;\n height: ", "px;\n width: ", ";\n "])), height / 2, height / 2, lineSize === 'none' ? 1 : sizes_1.SIZE_TO_NUMBER[lineSize], width ? "".concat(width, "px") : '100%');
|
|
67
|
+
}
|
|
15
68
|
}, function (_a) {
|
|
16
|
-
var
|
|
17
|
-
return
|
|
69
|
+
var theme = _a.theme, lineSize = _a.lineSize;
|
|
70
|
+
return lineSize === 'none' ? 'transparent' : (0, colors_1.changeLightness)(theme.main, 0.2);
|
|
71
|
+
});
|
|
72
|
+
exports.ReqoreSpacer = (0, react_1.memo)(function (_a) {
|
|
73
|
+
var customTheme = _a.customTheme, intent = _a.intent, _b = _a.lineSize, lineSize = _b === void 0 ? 'none' : _b, rest = __rest(_a, ["customTheme", "intent", "lineSize"]);
|
|
74
|
+
var theme = (0, useTheme_1.useReqoreTheme)('main', customTheme, intent);
|
|
75
|
+
var horizontal = rest.horizontal, vertical = rest.vertical;
|
|
76
|
+
// The user is using old version of the component
|
|
77
|
+
// We will assume that the user wants a spacer based on the width or height
|
|
78
|
+
if (!horizontal && !vertical) {
|
|
79
|
+
if (rest.width) {
|
|
80
|
+
horizontal = true;
|
|
81
|
+
}
|
|
82
|
+
if (rest.height) {
|
|
83
|
+
vertical = true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return ((0, jsx_runtime_1.jsx)(exports.StyledSpacer, __assign({ as: 'div' }, rest, { theme: theme, lineSize: lineSize, horizontal: horizontal, vertical: vertical, className: 'reqore-spacer' })));
|
|
87
|
+
});
|
|
88
|
+
exports.ReqoreHorizontalSpacer = (0, react_1.memo)(function (_a) {
|
|
89
|
+
var _b = _a.width, width = _b === void 0 ? 1 : _b, _c = _a.lineSize, lineSize = _c === void 0 ? 'none' : _c, rest = __rest(_a, ["width", "lineSize"]);
|
|
90
|
+
return (0, jsx_runtime_1.jsx)(exports.ReqoreSpacer, __assign({ width: width, lineSize: lineSize, horizontal: true }, rest));
|
|
91
|
+
});
|
|
92
|
+
exports.ReqoreVerticalSpacer = (0, react_1.memo)(function (_a) {
|
|
93
|
+
var _b = _a.height, height = _b === void 0 ? 1 : _b, _c = _a.lineSize, lineSize = _c === void 0 ? 'none' : _c, rest = __rest(_a, ["height", "lineSize"]);
|
|
94
|
+
return (0, jsx_runtime_1.jsx)(exports.ReqoreSpacer, __assign({ height: height, lineSize: lineSize, vertical: true }, rest));
|
|
18
95
|
});
|
|
19
|
-
var templateObject_1;
|
|
96
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
20
97
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Spacer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Spacer/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA6B;AAC7B,qEAAgD;AAChD,+CAA+E;AAC/E,+CAAuD;AACvD,iDAAsD;AAEtD,oCAAyC;AAE5B,QAAA,YAAY,GAAG,IAAA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AE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,UAAK,IAAI,EAAI,CAAC;AACjF,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizes.d.ts","sourceRoot":"","sources":["../../src/constants/sizes.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAClE,oBAAY,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnD,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC;AAEF,eAAO,MAAM,KAAK,qDAAsD,CAAC;AAEzE,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"sizes.d.ts","sourceRoot":"","sources":["../../src/constants/sizes.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAClE,oBAAY,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnD,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC;AAEF,eAAO,MAAM,KAAK,qDAAsD,CAAC;AAEzE,eAAO,MAAM,cAAc;;;;;;;CAO1B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;CAM1B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;CAMjC,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;CAM3B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;CAM9B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;CAM5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;CAM1B,CAAC;AAEF,eAAO,MAAM,cA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I,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;CACX,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export { ReqoreP, ReqoreP as ReqoreParagraph } from './components/Paragraph';
|
|
|
34
34
|
export { default as ReqorePopover } from './components/Popover';
|
|
35
35
|
export { default as ReqoreRadioGroup } from './components/RadioGroup';
|
|
36
36
|
export { default as ReqoreSidebar } from './components/Sidebar';
|
|
37
|
-
export { ReqoreSpacer } from './components/Spacer';
|
|
37
|
+
export { ReqoreHorizontalSpacer, ReqoreSpacer, ReqoreVerticalSpacer } from './components/Spacer';
|
|
38
38
|
export { default as ReqoreTable } from './components/Table';
|
|
39
39
|
export { default as ReqoreTabs } from './components/Tabs';
|
|
40
40
|
export { default as ReqoreTabsContent } from './components/Tabs/content';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IA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mB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11,8 +11,8 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
13
|
exports.__esModule = true;
|
|
14
|
-
exports.
|
|
15
|
-
exports.useReqoreTheme = exports.useReqore = exports.useLatestZIndex = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.ReqoreNotifications = exports.ReqoreIntents = exports.ReqoreSizes = exports.ReqoreColors = exports.ReqoreTree = exports.ReqoreTimeAgo = exports.ReqoreTextarea = exports.ReqoreTagGroup = exports.ReqoreTag = exports.ReqoreTabsList = exports.ReqoreTabsListItem = void 0;
|
|
14
|
+
exports.ReqoreTable = exports.ReqoreVerticalSpacer = exports.ReqoreSpacer = exports.ReqoreHorizontalSpacer = exports.ReqoreSidebar = exports.ReqoreRadioGroup = exports.ReqorePopover = exports.ReqoreParagraph = exports.ReqoreP = exports.ReqorePanel = exports.ReqoreNotification = exports.ReqoreNotificationsWrapper = exports.ReqoreNavbarItem = exports.ReqoreNavbarGroup = exports.ReqoreNavbarDivider = exports.ReqoreHeader = exports.ReqoreFooter = exports.ReqoreMultiSelect = exports.ReqoreModal = exports.ReqoreMessage = exports.ReqoreMenuItem = exports.ReqoreMenuDivider = exports.ReqoreMenu = exports.ReqoreLayoutContent = exports.ReqoreInput = exports.ReqoreIcon = exports.ReqoreHeading = exports.ReqoreH6 = exports.ReqoreH5 = exports.ReqoreH4 = exports.ReqoreH3 = exports.ReqoreH2 = exports.ReqoreH1 = exports.ReqoreTextEffect = exports.ReqoreEffect = exports.ReqoreDropdownItem = exports.ReqoreDropdownDivider = exports.ReqoreDropdown = exports.ReqoreDrawer = exports.ReqoreControlGroup = exports.ReqoreContent = exports.ReqoreCommentFeed = exports.ReqoreComment = exports.ReqoreColumn = exports.ReqoreColumns = exports.ReqoreCollection = exports.ReqoreCheckbox = exports.ReqoreButton = exports.ReqoreBreadcrumbsItem = exports.ReqoreBreadcrumbs = void 0;
|
|
15
|
+
exports.useReqoreTheme = exports.useReqore = exports.useLatestZIndex = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.ReqoreNotifications = exports.ReqoreIntents = exports.ReqoreSizes = exports.ReqoreColors = exports.ReqoreTree = exports.ReqoreTimeAgo = exports.ReqoreTextarea = exports.ReqoreTagGroup = exports.ReqoreTag = exports.ReqoreTabsList = exports.ReqoreTabsListItem = exports.ReqoreTabsContent = exports.ReqoreTabs = void 0;
|
|
16
16
|
var Breadcrumbs_1 = require("./components/Breadcrumbs");
|
|
17
17
|
__createBinding(exports, Breadcrumbs_1, "default", "ReqoreBreadcrumbs");
|
|
18
18
|
var item_1 = require("./components/Breadcrumbs/item");
|
|
@@ -96,7 +96,9 @@ __createBinding(exports, RadioGroup_1, "default", "ReqoreRadioGroup");
|
|
|
96
96
|
var Sidebar_1 = require("./components/Sidebar");
|
|
97
97
|
__createBinding(exports, Sidebar_1, "default", "ReqoreSidebar");
|
|
98
98
|
var Spacer_1 = require("./components/Spacer");
|
|
99
|
+
__createBinding(exports, Spacer_1, "ReqoreHorizontalSpacer");
|
|
99
100
|
__createBinding(exports, Spacer_1, "ReqoreSpacer");
|
|
101
|
+
__createBinding(exports, Spacer_1, "ReqoreVerticalSpacer");
|
|
100
102
|
var Table_1 = require("./components/Table");
|
|
101
103
|
__createBinding(exports, Table_1, "default", "ReqoreTable");
|
|
102
104
|
var Tabs_1 = require("./components/Tabs");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAwE;AAA/D,wEAA4B;AACrC,sDAAiF;AAAxE,qEAAgC;AACzC,8CAA8D;AAArD,8DAAuB;AAChC,kDAAkE;AAAzD,kEAAyB;AAClC,sDAA2D;AAAlD,2DAAgB;AACzB,gDAAqD;AAA5C,qDAAa;AACtB,sDAA2D;AAAlD,mDAAY;AACrB,gDAAqD;AAA5C,qDAAa;AACtB,wDAA6D;AAApD,6DAAiB;AAC1B,gDAAgE;AAAvD,gEAAwB;AACjC,0DAA0E;AAAjE,0EAA6B;AACtC,8CAAmD;AAA1C,mDAAY;AACrB,kDAAkE;AAAzD,kEAAyB;AAClC,mDAAuF;AAA9E,0DAAqB;AAAE,uDAAkB;AAClD,8CAAqE;AAA5D,mDAAY;AAAE,uDAAgB;AACvC,8CAQ6B;AAP3B,+CAAQ;AACR,+CAAQ;AACR,+CAAQ;AACR,+CAAQ;AACR,+CAAQ;AACR,+CAAQ;AACR,oDAAa;AAEf,0CAA0D;AAAjD,0DAAqB;AAC9B,4CAA4D;AAAnD,4DAAsB;AAC/B,uDAA6E;AAApE,sEAA8B;AACvC,0CAA0D;AAAjD,0DAAqB;AAC9B,qDAAyE;AAAhE,oEAA4B;AACrC,+CAAmE;AAA1D,8DAAyB;AAClC,gDAAgE;AAAvD,gEAAwB;AACjC,4CAAiD;AAAxC,iDAAW;AACpB,wDAA6D;AAApD,6DAAiB;AAC1B,8CAAiE;AAAxD,mDAAY;AAAE,mDAAY;AACnC,uDAA6E;AAApE,sEAA8B;A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C1B,8CAAiE;AAAxD,mDAAY;AAAE,mDAAY;AACnC,uDAA6E;AAApE,sEAA8B;AACvC,mDAAyE;AAAhE,kEAA4B;AACrC,iDAAuE;AAA9D,gEAA2B;AACpC,4DAAmF;AAA1E,mFAAqC;AAC9C,wEAAwF;AAA/E,0EAA6B;AACtC,4CAAiD;AAAxC,iDAAW;AACpB,oDAA6E;AAApE,iDAAO;AAAE,oEAA0B;AAC5C,gDAAgE;AAAvD,gEAAwB;AACjC,sDAAsE;AAA7D,sEAA2B;AACpC,gDAAgE;AAAvD,gEAAwB;AACjC,8CAAiG;AAAxF,6DAAsB;AAAE,mDAAY;AAAE,2DAAoB;AACnE,4CAA4D;AAAnD,4DAAsB;AAC/B,0CAA0D;AAAjD,0DAAqB;AAC9B,qDAAyE;AAAhE,oEAA4B;AACrC,+CAAuE;AAA9D,kEAA6B;AACtC,+CAAmE;AAA1D,8DAAyB;AAClC,wCAAwD;AAA/C,wDAAoB;AAC7B,gDAAmE;AAA1D,+DAAyB;AAClC,kDAAkE;AAAzD,kEAAyB;AAClC,gDAAgE;AAAvD,gEAAwB;AACjC,0CAA+C;AAAtC,+CAAU;AACnB,6CAA4D;AAAnD,6DAAsB;AAC/B,2CAAgD;AAAvC,iDAAW;AACpB,2CAAkD;AAAzC,mDAAa;AACtB,8DAA6E;AAApE,6EAA8B;AACvC,sDAAsE;AAA7D,sEAA2B;AACpC,yDAAmE;AAA1D,sEAAwB;AACjC,uDAAuE;AAA9D,0EAA6B;AACtC,2DAAqE;AAA5D,0EAA0B;AACnC,+CAA8C;AAArC,mDAAS;AAClB,6CAAkD;AAAzC,uDAAc"}
|
package/package.json
CHANGED
|
@@ -347,7 +347,7 @@ const Checkbox = forwardRef<HTMLDivElement, IReqoreCheckboxProps>(
|
|
|
347
347
|
}
|
|
348
348
|
image={image}
|
|
349
349
|
effect={{ grayscale: image ? !checked : undefined, opacity: checked ? 1 : 0.5 }}
|
|
350
|
-
|
|
350
|
+
color={intent ? changeLightness(theme.main, 0.2) : undefined}
|
|
351
351
|
/>
|
|
352
352
|
)}
|
|
353
353
|
{label && labelPosition === 'right' ? (
|
|
@@ -50,19 +50,20 @@ export const StyledReqoreControlGroup = styled.div<IReqoreControlGroupStyle>`
|
|
|
50
50
|
|
|
51
51
|
border-radius: ${({ stack }) => (!stack ? undefined : 0)};
|
|
52
52
|
|
|
53
|
-
${({ rounded, size }) =>
|
|
54
|
-
rounded &&
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
${({ rounded, size, stack }) =>
|
|
54
|
+
rounded && stack
|
|
55
|
+
? css`
|
|
56
|
+
&:first-child {
|
|
57
|
+
border-top-left-radius: ${RADIUS_FROM_SIZE[size]}px;
|
|
58
|
+
border-top-right-radius: ${RADIUS_FROM_SIZE[size]}px;
|
|
59
|
+
}
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
&:last-child {
|
|
62
|
+
border-bottom-left-radius: ${RADIUS_FROM_SIZE[size]}px;
|
|
63
|
+
border-bottom-right-radius: ${RADIUS_FROM_SIZE[size]}px;
|
|
64
|
+
}
|
|
65
|
+
`
|
|
66
|
+
: undefined}
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
> .reqore-control-wrapper:not(:last-child) .reqore-control {
|
|
@@ -84,19 +85,20 @@ export const StyledReqoreControlGroup = styled.div<IReqoreControlGroupStyle>`
|
|
|
84
85
|
|
|
85
86
|
border-radius: ${({ stack }) => (!stack ? undefined : 0)};
|
|
86
87
|
|
|
87
|
-
${({ rounded, size }) =>
|
|
88
|
-
rounded &&
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
${({ rounded, size, stack }) =>
|
|
89
|
+
rounded && stack
|
|
90
|
+
? css`
|
|
91
|
+
&:first-child {
|
|
92
|
+
border-top-left-radius: ${RADIUS_FROM_SIZE[size]}px;
|
|
93
|
+
border-bottom-left-radius: ${RADIUS_FROM_SIZE[size]}px;
|
|
94
|
+
}
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
&:last-child {
|
|
97
|
+
border-top-right-radius: ${RADIUS_FROM_SIZE[size]}px;
|
|
98
|
+
border-bottom-right-radius: ${RADIUS_FROM_SIZE[size]}px;
|
|
99
|
+
}
|
|
100
|
+
`
|
|
101
|
+
: undefined}
|
|
100
102
|
}
|
|
101
103
|
`}
|
|
102
104
|
`;
|
|
@@ -59,6 +59,7 @@ export interface IReqoreEffect extends IReqoreEffectFilters {
|
|
|
59
59
|
direction?: string;
|
|
60
60
|
borderColor?: TReqoreEffectColor;
|
|
61
61
|
animate?: TReqoreEffectGradientAnimationTrigger;
|
|
62
|
+
animationSpeed?: 1 | 2 | 3 | 4 | 5;
|
|
62
63
|
};
|
|
63
64
|
noWrap?: boolean;
|
|
64
65
|
color?: TReqoreEffectColor;
|
|
@@ -180,7 +181,8 @@ export const StyledEffect = styled.span`
|
|
|
180
181
|
${effect.gradient.animate === 'always' || (effect.gradient.animate === 'active' && active)
|
|
181
182
|
? css`
|
|
182
183
|
background-size: 200% 200%;
|
|
183
|
-
animation: ${StyledGradientKeyframes}
|
|
184
|
+
animation: ${StyledGradientKeyframes} ${effect.gradient.animationSpeed || 2}s linear
|
|
185
|
+
infinite;
|
|
184
186
|
`
|
|
185
187
|
: undefined}
|
|
186
188
|
|
|
@@ -199,7 +201,8 @@ export const StyledEffect = styled.span`
|
|
|
199
201
|
effect.gradient.animate === 'always'
|
|
200
202
|
? css`
|
|
201
203
|
background-size: 200% 200%;
|
|
202
|
-
animation: ${StyledGradientKeyframes}
|
|
204
|
+
animation: ${StyledGradientKeyframes} ${effect.gradient.animationSpeed || 2}s linear
|
|
205
|
+
infinite;
|
|
203
206
|
`
|
|
204
207
|
: undefined}
|
|
205
208
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { omit, size } from 'lodash';
|
|
2
2
|
import { forwardRef, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
-
import { useUpdateEffect } from 'react-use';
|
|
4
3
|
import { ReqoreDropdown, ReqoreInput } from '../..';
|
|
5
4
|
import { TSizes } from '../../constants/sizes';
|
|
6
5
|
import { IPopoverControls } from '../../hooks/usePopover';
|
|
@@ -18,7 +17,7 @@ export type TReqoreMultiSelectItem = Omit<IReqoreDropdownItem, 'color'> &
|
|
|
18
17
|
export interface IReqoreMultiSelectProps
|
|
19
18
|
extends Omit<IReqoreControlGroupProps, 'children' | 'vertical' | 'stack'> {
|
|
20
19
|
value?: string[];
|
|
21
|
-
onValueChange
|
|
20
|
+
onValueChange: (value: string[]) => void;
|
|
22
21
|
items?: TReqoreMultiSelectItem[];
|
|
23
22
|
onItemClick?: (item: IReqoreDropdownItem) => void;
|
|
24
23
|
onItemClickIcon?: IReqoreTagProps['rightIcon'];
|
|
@@ -61,7 +60,15 @@ export const ReqoreMultiSelectItem = memo(
|
|
|
61
60
|
effect={!item.intent ? item.effect || selectedItemEffect : undefined}
|
|
62
61
|
size={selectedItemSize}
|
|
63
62
|
onClick={onClick}
|
|
64
|
-
rightIcon={
|
|
63
|
+
rightIcon={
|
|
64
|
+
item.disabled
|
|
65
|
+
? undefined
|
|
66
|
+
: item.rightIcon
|
|
67
|
+
? item.rightIcon
|
|
68
|
+
: onClick
|
|
69
|
+
? onItemClickIcon
|
|
70
|
+
: undefined
|
|
71
|
+
}
|
|
65
72
|
/>
|
|
66
73
|
);
|
|
67
74
|
}
|
|
@@ -70,7 +77,7 @@ export const ReqoreMultiSelectItem = memo(
|
|
|
70
77
|
export const ReqoreMultiSelect = forwardRef<HTMLDivElement, IReqoreMultiSelectProps>(
|
|
71
78
|
(
|
|
72
79
|
{
|
|
73
|
-
value,
|
|
80
|
+
value = [],
|
|
74
81
|
onValueChange,
|
|
75
82
|
onItemClick,
|
|
76
83
|
canRemoveItems,
|
|
@@ -86,20 +93,11 @@ export const ReqoreMultiSelect = forwardRef<HTMLDivElement, IReqoreMultiSelectPr
|
|
|
86
93
|
}: IReqoreMultiSelectProps,
|
|
87
94
|
ref
|
|
88
95
|
) => {
|
|
89
|
-
const [_value, setValue] = useState<string[]>(value || []);
|
|
90
96
|
const [createdItems, setCreatedItems] = useState<TReqoreMultiSelectItem[]>([]);
|
|
91
97
|
const [query, setQuery] = useState<string>('');
|
|
92
98
|
const popoverData = useRef<IPopoverControls>(undefined);
|
|
93
99
|
const [focused, setFocused] = useState<boolean>(false);
|
|
94
100
|
|
|
95
|
-
useUpdateEffect(() => {
|
|
96
|
-
onValueChange?.(_value);
|
|
97
|
-
}, [_value]);
|
|
98
|
-
|
|
99
|
-
useEffect(() => {
|
|
100
|
-
setValue(value || []);
|
|
101
|
-
}, [value]);
|
|
102
|
-
|
|
103
101
|
useEffect(() => {
|
|
104
102
|
if (query && !popoverData.current?.isOpen()) {
|
|
105
103
|
popoverData.current?.open();
|
|
@@ -118,13 +116,13 @@ export const ReqoreMultiSelect = forwardRef<HTMLDivElement, IReqoreMultiSelectPr
|
|
|
118
116
|
|
|
119
117
|
const addRemoveItem = useCallback(
|
|
120
118
|
(item: TReqoreMultiSelectItem): void => {
|
|
121
|
-
if (
|
|
122
|
-
|
|
119
|
+
if (value.includes(item.value)) {
|
|
120
|
+
onValueChange(value.filter((v) => v !== item.value));
|
|
123
121
|
} else {
|
|
124
|
-
|
|
122
|
+
onValueChange([...value, item.value]);
|
|
125
123
|
}
|
|
126
124
|
},
|
|
127
|
-
[
|
|
125
|
+
[value]
|
|
128
126
|
);
|
|
129
127
|
|
|
130
128
|
const handleItemSelect = useCallback(
|
|
@@ -142,7 +140,7 @@ export const ReqoreMultiSelect = forwardRef<HTMLDivElement, IReqoreMultiSelectPr
|
|
|
142
140
|
|
|
143
141
|
setQuery('');
|
|
144
142
|
},
|
|
145
|
-
[createdItems,
|
|
143
|
+
[createdItems, value]
|
|
146
144
|
);
|
|
147
145
|
|
|
148
146
|
/*
|
|
@@ -168,7 +166,7 @@ export const ReqoreMultiSelect = forwardRef<HTMLDivElement, IReqoreMultiSelectPr
|
|
|
168
166
|
// Mark selected items as selected
|
|
169
167
|
filteredItems = filteredItems.map((item: TReqoreMultiSelectItem) => ({
|
|
170
168
|
...omit(item, ['actions', 'asBadge', 'rightIcon']),
|
|
171
|
-
selected:
|
|
169
|
+
selected: value.includes(item.value),
|
|
172
170
|
}));
|
|
173
171
|
|
|
174
172
|
if (query && !size(filteredItems)) {
|
|
@@ -207,7 +205,7 @@ export const ReqoreMultiSelect = forwardRef<HTMLDivElement, IReqoreMultiSelectPr
|
|
|
207
205
|
}
|
|
208
206
|
|
|
209
207
|
return filteredItems;
|
|
210
|
-
}, [items, createdItems, query,
|
|
208
|
+
}, [items, createdItems, query, value]);
|
|
211
209
|
|
|
212
210
|
const handleKeyDown = useCallback(
|
|
213
211
|
(e: KeyboardEvent) => {
|
|
@@ -231,14 +229,14 @@ export const ReqoreMultiSelect = forwardRef<HTMLDivElement, IReqoreMultiSelectPr
|
|
|
231
229
|
(value: string): TReqoreMultiSelectItem => {
|
|
232
230
|
return [...items, ...createdItems].find((item) => item.value === value);
|
|
233
231
|
},
|
|
234
|
-
[items, createdItems,
|
|
232
|
+
[items, createdItems, value]
|
|
235
233
|
);
|
|
236
234
|
|
|
237
235
|
return (
|
|
238
236
|
<ReqoreControlGroup vertical fluid {...rest} ref={ref}>
|
|
239
237
|
<ReqoreTagGroup minimal={rest.minimal} size={rest.size}>
|
|
240
|
-
{size(
|
|
241
|
-
|
|
238
|
+
{size(value) ? (
|
|
239
|
+
value.map((v) => (
|
|
242
240
|
<ReqoreMultiSelectItem
|
|
243
241
|
key={v}
|
|
244
242
|
item={getItemByValue(v)}
|
|
@@ -1,8 +1,93 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { memo } from 'react';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
import { SIZE_TO_NUMBER, TEXT_FROM_SIZE, TSizes } from '../../constants/sizes';
|
|
4
|
+
import { changeLightness } from '../../helpers/colors';
|
|
5
|
+
import { useReqoreTheme } from '../../hooks/useTheme';
|
|
6
|
+
import { IReqoreIntent, IWithReqoreCustomTheme, IWithReqoreEffect } from '../../types/global';
|
|
7
|
+
import { StyledEffect } from '../Effect';
|
|
2
8
|
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
export const StyledSpacer = styled(StyledEffect)`
|
|
10
|
+
${({ horizontal, vertical, width, height, lineSize }) => {
|
|
11
|
+
if (horizontal) {
|
|
12
|
+
return css`
|
|
13
|
+
margin-left: ${width / 2}px;
|
|
14
|
+
margin-right: ${width / 2}px;
|
|
15
|
+
width: ${lineSize === 'none' ? 1 : SIZE_TO_NUMBER[lineSize]}px;
|
|
16
|
+
height: ${height ? `${height}px` : `${TEXT_FROM_SIZE.normal}px`};
|
|
17
|
+
vertical-align: middle;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
`;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (vertical) {
|
|
23
|
+
return css`
|
|
24
|
+
margin-top: ${height / 2}px;
|
|
25
|
+
margin-bottom: ${height / 2}px;
|
|
26
|
+
height: ${lineSize === 'none' ? 1 : SIZE_TO_NUMBER[lineSize]}px;
|
|
27
|
+
width: ${width ? `${width}px` : '100%'};
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
}}
|
|
31
|
+
|
|
32
|
+
background-color: ${({ theme, lineSize }) =>
|
|
33
|
+
lineSize === 'none' ? 'transparent' : changeLightness(theme.main, 0.2)};
|
|
7
34
|
flex-shrink: 0;
|
|
8
35
|
`;
|
|
36
|
+
|
|
37
|
+
export interface IReqoreSpacerProps
|
|
38
|
+
extends React.HTMLAttributes<HTMLDivElement>,
|
|
39
|
+
IWithReqoreEffect,
|
|
40
|
+
IWithReqoreCustomTheme,
|
|
41
|
+
IReqoreIntent {
|
|
42
|
+
width?: number;
|
|
43
|
+
height?: number;
|
|
44
|
+
lineSize?: TSizes | 'none';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const ReqoreSpacer = memo(
|
|
48
|
+
({
|
|
49
|
+
customTheme,
|
|
50
|
+
intent,
|
|
51
|
+
lineSize = 'none',
|
|
52
|
+
...rest
|
|
53
|
+
}: IReqoreSpacerProps & { horizontal?: boolean; vertical?: boolean }) => {
|
|
54
|
+
const theme = useReqoreTheme('main', customTheme, intent);
|
|
55
|
+
let { horizontal, vertical } = rest;
|
|
56
|
+
|
|
57
|
+
// The user is using old version of the component
|
|
58
|
+
// We will assume that the user wants a spacer based on the width or height
|
|
59
|
+
if (!horizontal && !vertical) {
|
|
60
|
+
if (rest.width) {
|
|
61
|
+
horizontal = true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (rest.height) {
|
|
65
|
+
vertical = true;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<StyledSpacer
|
|
71
|
+
as='div'
|
|
72
|
+
{...rest}
|
|
73
|
+
theme={theme}
|
|
74
|
+
lineSize={lineSize}
|
|
75
|
+
horizontal={horizontal}
|
|
76
|
+
vertical={vertical}
|
|
77
|
+
className='reqore-spacer'
|
|
78
|
+
/>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
export const ReqoreHorizontalSpacer = memo(
|
|
84
|
+
({ width = 1, lineSize = 'none', ...rest }: IReqoreSpacerProps) => {
|
|
85
|
+
return <ReqoreSpacer width={width} lineSize={lineSize} horizontal {...rest} />;
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
export const ReqoreVerticalSpacer = memo(
|
|
90
|
+
({ height = 1, lineSize = 'none', ...rest }: IReqoreSpacerProps) => {
|
|
91
|
+
return <ReqoreSpacer height={height} lineSize={lineSize} vertical {...rest} />;
|
|
92
|
+
}
|
|
93
|
+
);
|
package/src/constants/sizes.ts
CHANGED
package/src/index.tsx
CHANGED
|
@@ -42,7 +42,7 @@ export { ReqoreP, ReqoreP as ReqoreParagraph } from './components/Paragraph';
|
|
|
42
42
|
export { default as ReqorePopover } from './components/Popover';
|
|
43
43
|
export { default as ReqoreRadioGroup } from './components/RadioGroup';
|
|
44
44
|
export { default as ReqoreSidebar } from './components/Sidebar';
|
|
45
|
-
export { ReqoreSpacer } from './components/Spacer';
|
|
45
|
+
export { ReqoreHorizontalSpacer, ReqoreSpacer, ReqoreVerticalSpacer } from './components/Spacer';
|
|
46
46
|
export { default as ReqoreTable } from './components/Table';
|
|
47
47
|
export { default as ReqoreTabs } from './components/Tabs';
|
|
48
48
|
export { default as ReqoreTabsContent } from './components/Tabs/content';
|
package/src/mock/multiSelect.ts
CHANGED
|
@@ -19,7 +19,7 @@ const Template: ComponentStory<typeof Checkbox> = (args) => {
|
|
|
19
19
|
<ReqoreCheckbox {...args} label='Read Only' labelPosition='left' readOnly />
|
|
20
20
|
</ReqoreControlGroup>
|
|
21
21
|
<ReqoreControlGroup>
|
|
22
|
-
<ReqoreCheckbox {...args} intent='info' />
|
|
22
|
+
<ReqoreCheckbox {...args} intent='info' checked />
|
|
23
23
|
<ReqoreCheckbox
|
|
24
24
|
{...args}
|
|
25
25
|
label='Label'
|