@decisiv/ui-components 2.0.1-alpha.139 → 2.0.1-alpha.142

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 (39) hide show
  1. package/lib/atoms/InputField/Containers.d.ts +2 -1
  2. package/lib/atoms/InputField/Containers.d.ts.map +1 -1
  3. package/lib/atoms/InputField/Containers.js +3 -1
  4. package/lib/atoms/InputField/index.d.ts +1 -0
  5. package/lib/atoms/InputField/index.d.ts.map +1 -1
  6. package/lib/atoms/InputField/index.js +5 -2
  7. package/lib/components/PasswordField/IconWrapper.d.ts +198 -0
  8. package/lib/components/PasswordField/IconWrapper.d.ts.map +1 -0
  9. package/lib/components/PasswordField/IconWrapper.js +32 -0
  10. package/lib/components/PasswordField/Input.d.ts +6 -0
  11. package/lib/components/PasswordField/Input.d.ts.map +1 -0
  12. package/lib/components/PasswordField/Input.js +28 -0
  13. package/lib/components/PasswordField/ShowPasswordButton.d.ts +8 -0
  14. package/lib/components/PasswordField/ShowPasswordButton.d.ts.map +1 -0
  15. package/lib/components/PasswordField/ShowPasswordButton.js +48 -0
  16. package/lib/components/PasswordField/index.d.ts +14 -0
  17. package/lib/components/PasswordField/index.d.ts.map +1 -0
  18. package/lib/components/PasswordField/index.js +95 -0
  19. package/lib/components/PasswordField/index.test.js +217 -0
  20. package/lib/components/PasswordField/schema.d.ts +3 -0
  21. package/lib/components/PasswordField/schema.d.ts.map +1 -0
  22. package/lib/components/PasswordField/schema.js +27 -0
  23. package/lib/components/SearchInput/index.d.ts +11 -0
  24. package/lib/components/SearchInput/index.d.ts.map +1 -0
  25. package/lib/components/SearchInput/index.js +177 -0
  26. package/lib/components/SearchInput/index.test.js +348 -0
  27. package/lib/components/SearchInput/schema.d.ts +3 -0
  28. package/lib/components/SearchInput/schema.d.ts.map +1 -0
  29. package/lib/components/SearchInput/schema.js +22 -0
  30. package/lib/components/SearchInput/types.d.ts +26 -0
  31. package/lib/components/SearchInput/types.d.ts.map +1 -0
  32. package/lib/components/SearchInput/types.js +5 -0
  33. package/lib/components/index.d.ts +2 -0
  34. package/lib/components/index.d.ts.map +1 -1
  35. package/lib/components/index.js +25 -0
  36. package/lib/providers/ConfigProvider/utils/translations.d.ts +10 -0
  37. package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
  38. package/lib/providers/ConfigProvider/utils/translations.js +10 -0
  39. package/package.json +2 -2
@@ -0,0 +1,348 @@
1
+ "use strict";
2
+
3
+ require("jest-styled-components");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _react2 = require("@testing-library/react");
8
+
9
+ var _ConfigProvider = require("../../providers/ConfigProvider");
10
+
11
+ var _ = _interopRequireDefault(require("."));
12
+
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+
15
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
16
+
17
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
18
+
19
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
20
+
21
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
22
+
23
+ function _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; }
24
+
25
+ beforeAll(function () {
26
+ var root = document.createElement('div');
27
+ root.setAttribute('id', 'popovers-root');
28
+ document.body.appendChild(root);
29
+ });
30
+
31
+ var wrapper = function wrapper(_ref) {
32
+ var children = _ref.children;
33
+ return _react.default.createElement(_ConfigProvider.ConfigProvider, null, children);
34
+ };
35
+
36
+ var render = function render(ui, options) {
37
+ return (0, _react2.render)(ui, _objectSpread({}, options, {
38
+ wrapper: wrapper
39
+ }));
40
+ };
41
+
42
+ var onChangeMock = jest.fn();
43
+ var onSearchMock = jest.fn();
44
+ describe('Search input', function () {
45
+ afterEach(jest.clearAllMocks);
46
+ it('renders the search input with the TIMES icon HIDDEN when its blank', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
47
+ var container, searchContainer;
48
+ return regeneratorRuntime.wrap(function _callee$(_context) {
49
+ while (1) {
50
+ switch (_context.prev = _context.next) {
51
+ case 0:
52
+ container = render(_react.default.createElement(_.default, {
53
+ value: "",
54
+ onChange: onChangeMock
55
+ }));
56
+ _context.next = 3;
57
+ return container.findByTestId('search-container');
58
+
59
+ case 3:
60
+ searchContainer = _context.sent;
61
+ expect((0, _react2.within)(searchContainer).getByLabelText('Clear search')).not.toBeVisible();
62
+
63
+ case 5:
64
+ case "end":
65
+ return _context.stop();
66
+ }
67
+ }
68
+ }, _callee);
69
+ })));
70
+ it('renders the search input with the TIMES icon VISIBLE when its blank', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
71
+ var container, searchContainer;
72
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
73
+ while (1) {
74
+ switch (_context2.prev = _context2.next) {
75
+ case 0:
76
+ container = render(_react.default.createElement(_.default, {
77
+ value: "Some value",
78
+ onChange: onChangeMock
79
+ }));
80
+ _context2.next = 3;
81
+ return container.findByTestId('search-container');
82
+
83
+ case 3:
84
+ searchContainer = _context2.sent;
85
+ expect((0, _react2.within)(searchContainer).getByLabelText('Clear search')).toBeVisible();
86
+
87
+ case 5:
88
+ case "end":
89
+ return _context2.stop();
90
+ }
91
+ }
92
+ }, _callee2);
93
+ })));
94
+ it('renders SEARCH icon for MEDIUM sized search input', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
95
+ var container;
96
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
97
+ while (1) {
98
+ switch (_context3.prev = _context3.next) {
99
+ case 0:
100
+ container = render(_react.default.createElement(_.default, {
101
+ value: "",
102
+ onChange: onChangeMock,
103
+ size: "medium"
104
+ }));
105
+ _context3.t0 = expect;
106
+ _context3.next = 4;
107
+ return container.findByTestId('search-icon');
108
+
109
+ case 4:
110
+ _context3.t1 = _context3.sent;
111
+ (0, _context3.t0)(_context3.t1).toBeInTheDocument();
112
+
113
+ case 6:
114
+ case "end":
115
+ return _context3.stop();
116
+ }
117
+ }
118
+ }, _callee3);
119
+ })));
120
+ it('renders search button with the text SEARCH for MEDIUM sized search input', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
121
+ var container;
122
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
123
+ while (1) {
124
+ switch (_context4.prev = _context4.next) {
125
+ case 0:
126
+ container = render(_react.default.createElement(_.default, {
127
+ value: "",
128
+ onChange: onChangeMock,
129
+ size: "medium"
130
+ }));
131
+ _context4.t0 = expect;
132
+ _context4.next = 4;
133
+ return container.findByRole('button');
134
+
135
+ case 4:
136
+ _context4.t1 = _context4.sent;
137
+ (0, _context4.t0)(_context4.t1).toHaveTextContent('Search');
138
+
139
+ case 6:
140
+ case "end":
141
+ return _context4.stop();
142
+ }
143
+ }
144
+ }, _callee4);
145
+ })));
146
+ it('does not render the SEARCH icon for SMALL sized search input', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
147
+ var container;
148
+ return regeneratorRuntime.wrap(function _callee5$(_context5) {
149
+ while (1) {
150
+ switch (_context5.prev = _context5.next) {
151
+ case 0:
152
+ container = render(_react.default.createElement(_.default, {
153
+ value: "",
154
+ onChange: onChangeMock,
155
+ size: "small"
156
+ }));
157
+ expect(container.queryByTestId('search-icon')).not.toBeInTheDocument();
158
+
159
+ case 2:
160
+ case "end":
161
+ return _context5.stop();
162
+ }
163
+ }
164
+ }, _callee5);
165
+ })));
166
+ it('renders search button with the icon SEARCH for SMALL sized search input', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
167
+ var container, button;
168
+ return regeneratorRuntime.wrap(function _callee6$(_context6) {
169
+ while (1) {
170
+ switch (_context6.prev = _context6.next) {
171
+ case 0:
172
+ container = render(_react.default.createElement(_.default, {
173
+ value: "",
174
+ onChange: onChangeMock,
175
+ size: "small"
176
+ }));
177
+ button = container.getByRole('button');
178
+ expect(button.querySelector('svg')).toBeInTheDocument();
179
+
180
+ case 3:
181
+ case "end":
182
+ return _context6.stop();
183
+ }
184
+ }
185
+ }, _callee6);
186
+ })));
187
+ it('renders the search input with the TIMES icon HIDDEN when its disabled', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
188
+ var container, searchContainer;
189
+ return regeneratorRuntime.wrap(function _callee7$(_context7) {
190
+ while (1) {
191
+ switch (_context7.prev = _context7.next) {
192
+ case 0:
193
+ container = render(_react.default.createElement(_.default, {
194
+ value: "some value",
195
+ onChange: onChangeMock,
196
+ disabled: true
197
+ }));
198
+ _context7.next = 3;
199
+ return container.findByTestId('search-container');
200
+
201
+ case 3:
202
+ searchContainer = _context7.sent;
203
+ expect((0, _react2.within)(searchContainer).queryByLabelText('Clear search')).not.toBeInTheDocument();
204
+
205
+ case 5:
206
+ case "end":
207
+ return _context7.stop();
208
+ }
209
+ }
210
+ }, _callee7);
211
+ })));
212
+ it('calls onChange when a change is triggered', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
213
+ var container, searchInput;
214
+ return regeneratorRuntime.wrap(function _callee8$(_context8) {
215
+ while (1) {
216
+ switch (_context8.prev = _context8.next) {
217
+ case 0:
218
+ container = render(_react.default.createElement(_.default, {
219
+ value: "",
220
+ onChange: onChangeMock,
221
+ disabled: true
222
+ }));
223
+ _context8.next = 3;
224
+ return container.findByTestId('search-container');
225
+
226
+ case 3:
227
+ _context8.next = 5;
228
+ return _context8.sent.querySelector('input');
229
+
230
+ case 5:
231
+ searchInput = _context8.sent;
232
+ _context8.next = 8;
233
+ return _react2.fireEvent.change(searchInput, {
234
+ target: {
235
+ value: 'some value'
236
+ }
237
+ });
238
+
239
+ case 8:
240
+ expect(onChangeMock).toHaveBeenCalled();
241
+
242
+ case 9:
243
+ case "end":
244
+ return _context8.stop();
245
+ }
246
+ }
247
+ }, _callee8);
248
+ })));
249
+ it('calls onChange with a blank value when clear button is clicked', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
250
+ var container, searchContainer;
251
+ return regeneratorRuntime.wrap(function _callee9$(_context9) {
252
+ while (1) {
253
+ switch (_context9.prev = _context9.next) {
254
+ case 0:
255
+ container = render(_react.default.createElement(_.default, {
256
+ value: "Some value",
257
+ onChange: onChangeMock
258
+ }));
259
+ _context9.next = 3;
260
+ return container.findByTestId('search-container');
261
+
262
+ case 3:
263
+ searchContainer = _context9.sent;
264
+ _context9.next = 6;
265
+ return _react2.fireEvent.click((0, _react2.within)(searchContainer).getByLabelText('Clear search'));
266
+
267
+ case 6:
268
+ expect(onChangeMock).toHaveBeenCalledWith({
269
+ target: {
270
+ value: ''
271
+ }
272
+ });
273
+
274
+ case 7:
275
+ case "end":
276
+ return _context9.stop();
277
+ }
278
+ }
279
+ }, _callee9);
280
+ })));
281
+ it('calls onSearch when search button is clicked', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
282
+ var container;
283
+ return regeneratorRuntime.wrap(function _callee10$(_context10) {
284
+ while (1) {
285
+ switch (_context10.prev = _context10.next) {
286
+ case 0:
287
+ container = render(_react.default.createElement(_.default, {
288
+ value: "Searched value",
289
+ onChange: onChangeMock,
290
+ onSearch: onSearchMock,
291
+ size: "medium"
292
+ }));
293
+ _context10.t0 = _react2.fireEvent;
294
+ _context10.next = 4;
295
+ return container.findByRole('button');
296
+
297
+ case 4:
298
+ _context10.t1 = _context10.sent;
299
+
300
+ _context10.t0.click.call(_context10.t0, _context10.t1);
301
+
302
+ expect(onSearchMock).toHaveBeenCalledWith('Searched value');
303
+
304
+ case 7:
305
+ case "end":
306
+ return _context10.stop();
307
+ }
308
+ }
309
+ }, _callee10);
310
+ })));
311
+ it('calls onSearch when enter is pressed', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
312
+ var container, searchInput;
313
+ return regeneratorRuntime.wrap(function _callee11$(_context11) {
314
+ while (1) {
315
+ switch (_context11.prev = _context11.next) {
316
+ case 0:
317
+ container = render(_react.default.createElement(_.default, {
318
+ value: "Searched value",
319
+ onChange: onChangeMock,
320
+ onSearch: onSearchMock,
321
+ size: "medium"
322
+ }));
323
+ _context11.next = 3;
324
+ return container.findByTestId('search-container');
325
+
326
+ case 3:
327
+ _context11.next = 5;
328
+ return _context11.sent.querySelector('input');
329
+
330
+ case 5:
331
+ searchInput = _context11.sent;
332
+
333
+ _react2.fireEvent.keyPress(searchInput, {
334
+ code: 'Enter',
335
+ key: 'Enter',
336
+ charCode: 13
337
+ });
338
+
339
+ expect(onSearchMock).toHaveBeenCalledWith('Searched value');
340
+
341
+ case 8:
342
+ case "end":
343
+ return _context11.stop();
344
+ }
345
+ }
346
+ }, _callee11);
347
+ })));
348
+ });
@@ -0,0 +1,3 @@
1
+ declare const schema: any;
2
+ export default schema;
3
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAA2C,CAAC;AAwBxD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _reactDesc = require("react-desc");
9
+
10
+ // @ts-ignore no module typings
11
+ var schema = (0, _reactDesc.describe)({
12
+ displayName: 'SearchInput'
13
+ });
14
+ schema.propTypes = {
15
+ size: _reactDesc.PropTypes.oneOf(['medium', 'small']).description('Controls the size of the search input.').defaultValue('medium'),
16
+ disabled: _reactDesc.PropTypes.bool.description('Boolean indicating whether the search input is disabled.'),
17
+ value: _reactDesc.PropTypes.string.description('A text value to be displayed on the input field'),
18
+ onSearch: _reactDesc.PropTypes.func.description('A callback that is invoked with the input value when the the search action is performed'),
19
+ onChange: _reactDesc.PropTypes.func.description('A callback that is invoked when the value of the search field changes')
20
+ };
21
+ var _default = schema;
22
+ exports.default = _default;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { BaseInputFieldProps } from '../../atoms/InputField';
3
+ import { FlexComponentProps } from '../Flex';
4
+ export interface SearchItem<T> {
5
+ label: string;
6
+ value: T;
7
+ }
8
+ export declare type Size = 'medium' | 'small';
9
+ export interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'label'>, Omit<BaseInputFieldProps, 'children' | 'onClick' | 'label'> {
10
+ zIndex?: number;
11
+ onSearch?: (value: string) => void;
12
+ onSelectItem?: (value: any) => void;
13
+ onBlur?: React.FocusEventHandler;
14
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
15
+ onFocus?: React.FocusEventHandler;
16
+ onKeyDown?: React.KeyboardEventHandler;
17
+ size: Size;
18
+ value: string;
19
+ }
20
+ export interface SearchFieldProps extends Omit<SearchInputProps, 'loader'> {
21
+ observedElementRef: React.MutableRefObject<any>;
22
+ }
23
+ export interface StyledFlexProps extends FlexComponentProps {
24
+ width: number | null;
25
+ }
26
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV;AAED,oBAAY,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtC,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,EACzE,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACtD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACvC,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IACxE,kBAAkB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -20,9 +20,11 @@ export { default as Modal } from './Modal';
20
20
  export { default as OptionsList } from '../atoms/OptionsList';
21
21
  export { Notification, NotificationsPanel, Notifier, useNotifications, } from './Notifications';
22
22
  export { default as Pagination } from './Pagination';
23
+ export { default as PasswordField } from './PasswordField';
23
24
  export { default as Popover } from './Popover';
24
25
  export { default as RadioGroup } from './RadioGroup';
25
26
  export { default as Select } from './Select';
27
+ export { default as SearchInput, SearchItem } from './SearchInput';
26
28
  export { default as SelectDate, DisabledDateRuleName, DayOfWeek, } from './SelectDate';
27
29
  export { default as SelectDateRange } from './SelectDateRange';
28
30
  export { default as SelectMenu } from './SelectMenu';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;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
49
  RadioGroup: true,
49
50
  Select: true,
51
+ SearchInput: true,
52
+ SearchItem: true,
50
53
  SelectDate: true,
51
54
  DisabledDateRuleName: true,
52
55
  DayOfWeek: true,
@@ -305,6 +308,12 @@ Object.defineProperty(exports, "Pagination", {
305
308
  return _Pagination.default;
306
309
  }
307
310
  });
311
+ Object.defineProperty(exports, "PasswordField", {
312
+ enumerable: true,
313
+ get: function get() {
314
+ return _PasswordField.default;
315
+ }
316
+ });
308
317
  Object.defineProperty(exports, "Popover", {
309
318
  enumerable: true,
310
319
  get: function get() {
@@ -323,6 +332,18 @@ Object.defineProperty(exports, "Select", {
323
332
  return _Select.default;
324
333
  }
325
334
  });
335
+ Object.defineProperty(exports, "SearchInput", {
336
+ enumerable: true,
337
+ get: function get() {
338
+ return _SearchInput.default;
339
+ }
340
+ });
341
+ Object.defineProperty(exports, "SearchItem", {
342
+ enumerable: true,
343
+ get: function get() {
344
+ return _SearchInput.SearchItem;
345
+ }
346
+ });
326
347
  Object.defineProperty(exports, "SelectDate", {
327
348
  enumerable: true,
328
349
  get: function get() {
@@ -470,12 +491,16 @@ var _Notifications = require("./Notifications");
470
491
 
471
492
  var _Pagination = _interopRequireDefault(require("./Pagination"));
472
493
 
494
+ var _PasswordField = _interopRequireDefault(require("./PasswordField"));
495
+
473
496
  var _Popover = _interopRequireDefault(require("./Popover"));
474
497
 
475
498
  var _RadioGroup = _interopRequireDefault(require("./RadioGroup"));
476
499
 
477
500
  var _Select = _interopRequireDefault(require("./Select"));
478
501
 
502
+ var _SearchInput = _interopRequireWildcard(require("./SearchInput"));
503
+
479
504
  var _SelectDate = _interopRequireWildcard(require("./SelectDate"));
480
505
 
481
506
  var _SelectDateRange = _interopRequireDefault(require("./SelectDateRange"));
@@ -122,6 +122,16 @@ declare const translations: {
122
122
  textField: {
123
123
  readonly requiredMessage: "Required";
124
124
  };
125
+ passwordField: {
126
+ readonly showPassword: "Show Password";
127
+ readonly hidePassword: "Hide Password";
128
+ readonly password: "Password";
129
+ };
130
+ searchInput: {
131
+ readonly clear: "Clear";
132
+ readonly search: "Search";
133
+ readonly clearSearch: "Clear search";
134
+ };
125
135
  };
126
136
  export declare type Translations = typeof translations;
127
137
  export default translations;
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHR,CAAC;AAEX,oBAAY,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/providers/ConfigProvider/utils/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+HR,CAAC;AAEX,oBAAY,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAe,YAAY,CAAC"}
@@ -127,6 +127,16 @@ var translations = {
127
127
  },
128
128
  textField: {
129
129
  requiredMessage: 'Required'
130
+ },
131
+ passwordField: {
132
+ showPassword: 'Show Password',
133
+ hidePassword: 'Hide Password',
134
+ password: 'Password'
135
+ },
136
+ searchInput: {
137
+ clear: 'Clear',
138
+ search: 'Search',
139
+ clearSearch: 'Clear search'
130
140
  }
131
141
  };
132
142
  var _default = translations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decisiv/ui-components",
3
- "version": "2.0.1-alpha.139+ac10f0c",
3
+ "version": "2.0.1-alpha.142+9316be8",
4
4
  "description": "Decisiv's design system React components",
5
5
  "author": "Decisiv UI Development Team",
6
6
  "license": "MIT",
@@ -71,5 +71,5 @@
71
71
  "access": "public"
72
72
  },
73
73
  "private": false,
74
- "gitHead": "ac10f0cea9f32e6b223eb733c92a9ff4b81efa7e"
74
+ "gitHead": "9316be8ea57115d7125a19842e4365e9530a9062"
75
75
  }