@bigbinary/neetoui 8.3.43 → 8.3.45
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/ActionDropdown.js +2 -2
- package/dist/Alert.js +3 -3
- package/dist/Checkbox.js +2 -2
- package/dist/ColorPicker.js +52 -43
- package/dist/ColorPicker.js.map +1 -1
- package/dist/DatePicker.js +15 -10
- package/dist/DatePicker.js.map +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/Input.js +2 -2
- package/dist/Modal.js +3 -3
- package/dist/MultiEmailInput.js +2 -2
- package/dist/Pagination.js +2 -2
- package/dist/Pane.js +3 -3
- package/dist/Radio.js +2 -2
- package/dist/Select.js +2 -2
- package/dist/Sidebar.js +2 -2
- package/dist/Slider.js +2 -2
- package/dist/Switch.js +2 -2
- package/dist/Table.js +97 -15
- package/dist/Table.js.map +1 -1
- package/dist/{Textarea-Cn12kZAy.js → Textarea-CoY3q1mA.js} +2 -2
- package/dist/{Textarea-Cn12kZAy.js.map → Textarea-CoY3q1mA.js.map} +1 -1
- package/dist/Textarea.js +3 -3
- package/dist/TimePicker.js +15 -10
- package/dist/TimePicker.js.map +1 -1
- package/dist/Toastr.js +2 -2
- package/dist/TranslationProvider.js +61 -25
- package/dist/TranslationProvider.js.map +1 -1
- package/dist/Tree.js +2 -2
- package/dist/TreeSelect.js +2 -2
- package/dist/cjs/ActionDropdown.js +2 -2
- package/dist/cjs/Alert.js +3 -3
- package/dist/cjs/Checkbox.js +2 -2
- package/dist/cjs/ColorPicker.js +52 -43
- package/dist/cjs/ColorPicker.js.map +1 -1
- package/dist/cjs/DatePicker.js +15 -10
- package/dist/cjs/DatePicker.js.map +1 -1
- package/dist/cjs/Dropdown.js +2 -2
- package/dist/cjs/Input.js +2 -2
- package/dist/cjs/Modal.js +3 -3
- package/dist/cjs/MultiEmailInput.js +2 -2
- package/dist/cjs/Pagination.js +2 -2
- package/dist/cjs/Pane.js +3 -3
- package/dist/cjs/Radio.js +2 -2
- package/dist/cjs/Select.js +2 -2
- package/dist/cjs/Sidebar.js +2 -2
- package/dist/cjs/Slider.js +2 -2
- package/dist/cjs/Switch.js +2 -2
- package/dist/cjs/Table.js +112 -30
- package/dist/cjs/Table.js.map +1 -1
- package/dist/cjs/{Textarea-BF9uNO2J.js → Textarea-DzetFleJ.js} +2 -2
- package/dist/cjs/{Textarea-BF9uNO2J.js.map → Textarea-DzetFleJ.js.map} +1 -1
- package/dist/cjs/Textarea.js +3 -3
- package/dist/cjs/TimePicker.js +15 -10
- package/dist/cjs/TimePicker.js.map +1 -1
- package/dist/cjs/Toastr.js +2 -2
- package/dist/cjs/TranslationProvider.js +61 -25
- package/dist/cjs/TranslationProvider.js.map +1 -1
- package/dist/cjs/Tree.js +2 -2
- package/dist/cjs/TreeSelect.js +2 -2
- package/dist/cjs/{en-BoX6pwZe.js → en-BfFI1Si2.js} +11 -5
- package/dist/cjs/en-BfFI1Si2.js.map +1 -0
- package/dist/cjs/formik/ActionBlock.js +2 -2
- package/dist/cjs/formik/BlockNavigation.js +3 -3
- package/dist/cjs/formik/Checkbox.js +2 -2
- package/dist/cjs/formik/Input.js +2 -2
- package/dist/cjs/formik/MultiEmailInput.js +2 -2
- package/dist/cjs/formik/Radio.js +2 -2
- package/dist/cjs/formik/Select.js +2 -2
- package/dist/cjs/formik/Slider.js +2 -2
- package/dist/cjs/formik/Switch.js +2 -2
- package/dist/cjs/formik/Textarea.js +3 -3
- package/dist/cjs/formik/TreeSelect.js +2 -2
- package/dist/cjs/formik/index.js +4 -4
- package/dist/cjs/{index-CcLewRhe.js → index-BlcVTw2b.js} +2 -2
- package/dist/cjs/{index-CcLewRhe.js.map → index-BlcVTw2b.js.map} +1 -1
- package/dist/cjs/{index-CHSpscO7.js → index-DruCXsxo.js} +394 -23
- package/dist/cjs/index-DruCXsxo.js.map +1 -0
- package/dist/cjs/index.js +13 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/layouts.js +2 -2
- package/dist/cjs/{useOverlayManager-Bmn7TLVG.js → useOverlayManager-T0kuI6q4.js} +2 -2
- package/dist/cjs/{useOverlayManager-Bmn7TLVG.js.map → useOverlayManager-T0kuI6q4.js.map} +1 -1
- package/dist/cjs/{useRecentlyUsedColors-Cfbf5D9L.js → useRecentlyUsedColors-CThW5BOM.js} +2 -2
- package/dist/cjs/{useRecentlyUsedColors-Cfbf5D9L.js.map → useRecentlyUsedColors-CThW5BOM.js.map} +1 -1
- package/dist/{en-Cj1tGKrT.js → en-DVlE9xuu.js} +11 -5
- package/dist/en-DVlE9xuu.js.map +1 -0
- package/dist/formik/ActionBlock.js +2 -2
- package/dist/formik/BlockNavigation.js +3 -3
- package/dist/formik/Checkbox.js +2 -2
- package/dist/formik/Input.js +2 -2
- package/dist/formik/MultiEmailInput.js +2 -2
- package/dist/formik/Radio.js +2 -2
- package/dist/formik/Select.js +2 -2
- package/dist/formik/Slider.js +2 -2
- package/dist/formik/Switch.js +2 -2
- package/dist/formik/Textarea.js +3 -3
- package/dist/formik/TreeSelect.js +2 -2
- package/dist/formik/index.js +4 -4
- package/dist/{index-PdVtY1Cx.js → index-BRcfDAre.js} +387 -27
- package/dist/index-BRcfDAre.js.map +1 -0
- package/dist/{index-DFo1kTlC.js → index-BbZEp6Op.js} +3 -3
- package/dist/{index-DFo1kTlC.js.map → index-BbZEp6Op.js.map} +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/layouts.js +2 -2
- package/dist/src/translations/ar.json +10 -4
- package/dist/src/translations/bg.json +10 -4
- package/dist/src/translations/ca.json +10 -4
- package/dist/src/translations/cs.json +10 -4
- package/dist/src/translations/da.json +10 -4
- package/dist/src/translations/de.json +10 -4
- package/dist/src/translations/en.json +10 -4
- package/dist/src/translations/es-MX.json +10 -4
- package/dist/src/translations/es.json +10 -4
- package/dist/src/translations/et.json +10 -4
- package/dist/src/translations/fi.json +10 -4
- package/dist/src/translations/fil.json +10 -4
- package/dist/src/translations/fr.json +10 -4
- package/dist/src/translations/he.json +50 -0
- package/dist/src/translations/hi.json +10 -4
- package/dist/src/translations/hr.json +10 -4
- package/dist/src/translations/id.json +10 -4
- package/dist/src/translations/it.json +10 -4
- package/dist/src/translations/ja.json +10 -4
- package/dist/src/translations/ko.json +10 -4
- package/dist/src/translations/nl.json +10 -4
- package/dist/src/translations/pl.json +10 -4
- package/dist/src/translations/pt-BR.json +10 -4
- package/dist/src/translations/pt.json +10 -4
- package/dist/src/translations/ro.json +10 -4
- package/dist/src/translations/ru.json +10 -4
- package/dist/src/translations/sk.json +10 -4
- package/dist/src/translations/sl.json +10 -4
- package/dist/src/translations/sv.json +10 -4
- package/dist/src/translations/th.json +10 -4
- package/dist/src/translations/tr.json +10 -4
- package/dist/src/translations/uk.json +10 -4
- package/dist/src/translations/vi.json +10 -4
- package/dist/src/translations/zh-CN.json +10 -4
- package/dist/src/translations/zh-TW.json +10 -4
- package/dist/{useOverlayManager-CofhPkL6.js → useOverlayManager-BtEqSq_z.js} +2 -2
- package/dist/{useOverlayManager-CofhPkL6.js.map → useOverlayManager-BtEqSq_z.js.map} +1 -1
- package/dist/{useRecentlyUsedColors-Bz5p2xal.js → useRecentlyUsedColors-C18GFyJC.js} +2 -2
- package/dist/{useRecentlyUsedColors-Bz5p2xal.js.map → useRecentlyUsedColors-C18GFyJC.js.map} +1 -1
- package/package.json +3 -3
- package/types/ColorPicker.d.ts +1 -0
- package/dist/cjs/en-BoX6pwZe.js.map +0 -1
- package/dist/cjs/index-CHSpscO7.js.map +0 -1
- package/dist/cjs/useRestoreScrollPosition-6TwcjUT5.js +0 -233
- package/dist/cjs/useRestoreScrollPosition-6TwcjUT5.js.map +0 -1
- package/dist/en-Cj1tGKrT.js.map +0 -1
- package/dist/index-PdVtY1Cx.js.map +0 -1
- package/dist/useRestoreScrollPosition-C0t8os3c.js +0 -222
- package/dist/useRestoreScrollPosition-C0t8os3c.js.map +0 -1
package/dist/ActionDropdown.js
CHANGED
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { n as noop } from './index-
|
|
5
|
+
import { n as noop } from './index-BbZEp6Op.js';
|
|
6
6
|
import Button from './Button.js';
|
|
7
7
|
import Dropdown from './Dropdown.js';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -12,7 +12,7 @@ import '@babel/runtime/helpers/createClass';
|
|
|
12
12
|
import '@bigbinary/neeto-cist';
|
|
13
13
|
import 'qs';
|
|
14
14
|
import 'ramda';
|
|
15
|
-
import './en-
|
|
15
|
+
import './en-DVlE9xuu.js';
|
|
16
16
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
17
17
|
import 'dayjs';
|
|
18
18
|
import 'dayjs/plugin/localeData';
|
package/dist/Alert.js
CHANGED
|
@@ -13,7 +13,7 @@ import '@babel/runtime/helpers/slicedToArray';
|
|
|
13
13
|
import '@tippyjs/react';
|
|
14
14
|
import 'tippy.js';
|
|
15
15
|
import '@bigbinary/neeto-icons/Close';
|
|
16
|
-
import './useOverlayManager-
|
|
16
|
+
import './useOverlayManager-BtEqSq_z.js';
|
|
17
17
|
import '@babel/runtime/helpers/esm/extends';
|
|
18
18
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
19
19
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
@@ -23,10 +23,10 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
23
23
|
import './overlayManager.js';
|
|
24
24
|
import '@babel/runtime/helpers/classCallCheck';
|
|
25
25
|
import '@babel/runtime/helpers/createClass';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-BbZEp6Op.js';
|
|
27
27
|
import '@bigbinary/neeto-cist';
|
|
28
28
|
import 'qs';
|
|
29
|
-
import './en-
|
|
29
|
+
import './en-DVlE9xuu.js';
|
|
30
30
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
31
31
|
import 'dayjs';
|
|
32
32
|
import 'dayjs/plugin/localeData';
|
package/dist/Checkbox.js
CHANGED
|
@@ -7,7 +7,7 @@ import '@babel/runtime/helpers/slicedToArray';
|
|
|
7
7
|
import 'react-router-dom';
|
|
8
8
|
import '@bigbinary/neeto-hotkeys';
|
|
9
9
|
import './overlayManager.js';
|
|
10
|
-
import { h as hyphenize } from './index-
|
|
10
|
+
import { h as hyphenize } from './index-BbZEp6Op.js';
|
|
11
11
|
import 'qs';
|
|
12
12
|
import Label from './Label.js';
|
|
13
13
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -15,7 +15,7 @@ import '@babel/runtime/helpers/classCallCheck';
|
|
|
15
15
|
import '@babel/runtime/helpers/createClass';
|
|
16
16
|
import '@bigbinary/neeto-cist';
|
|
17
17
|
import 'ramda';
|
|
18
|
-
import './en-
|
|
18
|
+
import './en-DVlE9xuu.js';
|
|
19
19
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
20
20
|
import 'dayjs';
|
|
21
21
|
import 'dayjs/plugin/localeData';
|
package/dist/ColorPicker.js
CHANGED
|
@@ -5,16 +5,16 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
6
|
import { useMemo, useRef, useState, useEffect, useCallback } from 'react';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
|
-
import Down from '@bigbinary/neeto-icons/Down';
|
|
9
8
|
import ColorPickerIcon from '@bigbinary/neeto-icons/ColorPicker';
|
|
10
9
|
import { HexAlphaColorPicker, HexColorPicker, HexColorInput } from 'react-colorful';
|
|
11
10
|
import { useTranslation } from 'react-i18next';
|
|
12
|
-
import { t as tinycolor, u as useRecentlyUsedColors } from './useRecentlyUsedColors-
|
|
11
|
+
import { t as tinycolor, u as useRecentlyUsedColors } from './useRecentlyUsedColors-C18GFyJC.js';
|
|
13
12
|
import Button from './Button.js';
|
|
14
13
|
import Dropdown from './Dropdown.js';
|
|
15
14
|
import Typography from './Typography.js';
|
|
16
|
-
import { g as getLocale, n as noop } from './index-
|
|
15
|
+
import { g as getLocale, n as noop } from './index-BbZEp6Op.js';
|
|
17
16
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
17
|
+
import Down from '@bigbinary/neeto-icons/Down';
|
|
18
18
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
19
19
|
import 'react-router-dom';
|
|
20
20
|
import './Spinner.js';
|
|
@@ -26,7 +26,7 @@ import '@bigbinary/neeto-cist';
|
|
|
26
26
|
import '@babel/runtime/helpers/classCallCheck';
|
|
27
27
|
import '@babel/runtime/helpers/createClass';
|
|
28
28
|
import 'qs';
|
|
29
|
-
import './en-
|
|
29
|
+
import './en-DVlE9xuu.js';
|
|
30
30
|
import 'dayjs';
|
|
31
31
|
import 'dayjs/plugin/localeData';
|
|
32
32
|
import 'dayjs/plugin/utc';
|
|
@@ -66,6 +66,11 @@ var DEFAULT_PALETTE_COLORS = [{
|
|
|
66
66
|
}, {
|
|
67
67
|
hex: "#095482"
|
|
68
68
|
}];
|
|
69
|
+
var TARGET_SIZES = {
|
|
70
|
+
large: "large",
|
|
71
|
+
medium: "medium",
|
|
72
|
+
small: "small"
|
|
73
|
+
};
|
|
69
74
|
|
|
70
75
|
var Palette = function Palette(_ref) {
|
|
71
76
|
var color = _ref.color,
|
|
@@ -103,13 +108,42 @@ var Palette = function Palette(_ref) {
|
|
|
103
108
|
});
|
|
104
109
|
};
|
|
105
110
|
|
|
111
|
+
var Target = function Target(_ref) {
|
|
112
|
+
var size = _ref.size,
|
|
113
|
+
showHexValue = _ref.showHexValue,
|
|
114
|
+
color = _ref.color,
|
|
115
|
+
colorValue = _ref.colorValue;
|
|
116
|
+
return /*#__PURE__*/jsxs("button", {
|
|
117
|
+
"data-cy": "color-picker-target",
|
|
118
|
+
"data-testid": "neeto-color-picker",
|
|
119
|
+
type: "button",
|
|
120
|
+
className: classnames("neeto-ui-colorpicker__target", {
|
|
121
|
+
"neeto-ui-colorpicker__target-size--large": size === TARGET_SIZES.large,
|
|
122
|
+
"neeto-ui-colorpicker__target-size--medium": size === TARGET_SIZES.medium,
|
|
123
|
+
"neeto-ui-colorpicker__target-size--small": size === TARGET_SIZES.small
|
|
124
|
+
}),
|
|
125
|
+
children: [showHexValue && /*#__PURE__*/jsx("span", {
|
|
126
|
+
className: "neeto-ui-colorpicker-target__code",
|
|
127
|
+
children: color
|
|
128
|
+
}), /*#__PURE__*/jsxs("span", {
|
|
129
|
+
className: "neeto-ui-colorpicker-target__color-wrapper",
|
|
130
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
131
|
+
className: "neeto-ui-colorpicker-target__color neeto-ui-border-gray-200",
|
|
132
|
+
style: {
|
|
133
|
+
backgroundColor: colorValue
|
|
134
|
+
}
|
|
135
|
+
}), /*#__PURE__*/jsx("span", {
|
|
136
|
+
className: "neeto-ui-colorpicker-target__icon",
|
|
137
|
+
children: /*#__PURE__*/jsx(Down, {
|
|
138
|
+
size: 16
|
|
139
|
+
})
|
|
140
|
+
})]
|
|
141
|
+
})]
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
|
|
106
145
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
107
146
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
108
|
-
var TARGET_SIZES = {
|
|
109
|
-
large: "large",
|
|
110
|
-
medium: "medium",
|
|
111
|
-
small: "small"
|
|
112
|
-
};
|
|
113
147
|
var ColorPicker = function ColorPicker(_ref) {
|
|
114
148
|
var _ref2;
|
|
115
149
|
var _ref$color = _ref.color,
|
|
@@ -127,6 +161,8 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
127
161
|
showTransparencyControl = _ref$showTransparency === void 0 ? false : _ref$showTransparency,
|
|
128
162
|
_ref$showPicker = _ref.showPicker,
|
|
129
163
|
showPicker = _ref$showPicker === void 0 ? true : _ref$showPicker,
|
|
164
|
+
_ref$showHexPicker = _ref.showHexPicker,
|
|
165
|
+
showHexPicker = _ref$showHexPicker === void 0 ? true : _ref$showHexPicker,
|
|
130
166
|
portalProps = _ref.portalProps,
|
|
131
167
|
colorPalette = _ref.colorPalette,
|
|
132
168
|
_ref$showRecentlyUsed = _ref.showRecentlyUsedColors,
|
|
@@ -227,52 +263,25 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
227
263
|
setRecentlyUsedColors(updatedColors);
|
|
228
264
|
setIsColorSelected(false);
|
|
229
265
|
};
|
|
230
|
-
var Target = function Target(_ref5) {
|
|
231
|
-
var size = _ref5.size;
|
|
232
|
-
return /*#__PURE__*/jsxs("button", {
|
|
233
|
-
"data-cy": "color-picker-target",
|
|
234
|
-
"data-testid": "neeto-color-picker",
|
|
235
|
-
type: "button",
|
|
236
|
-
className: classnames("neeto-ui-colorpicker__target", {
|
|
237
|
-
"neeto-ui-colorpicker__target-size--large": size === TARGET_SIZES.large,
|
|
238
|
-
"neeto-ui-colorpicker__target-size--medium": size === TARGET_SIZES.medium,
|
|
239
|
-
"neeto-ui-colorpicker__target-size--small": size === TARGET_SIZES.small
|
|
240
|
-
}),
|
|
241
|
-
children: [showHexValue && /*#__PURE__*/jsx("span", {
|
|
242
|
-
className: "neeto-ui-colorpicker-target__code",
|
|
243
|
-
children: color
|
|
244
|
-
}), /*#__PURE__*/jsxs("span", {
|
|
245
|
-
className: "neeto-ui-colorpicker-target__color-wrapper",
|
|
246
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
247
|
-
className: "neeto-ui-colorpicker-target__color neeto-ui-border-gray-200",
|
|
248
|
-
style: {
|
|
249
|
-
backgroundColor: colorValue
|
|
250
|
-
}
|
|
251
|
-
}), /*#__PURE__*/jsx("span", {
|
|
252
|
-
className: "neeto-ui-colorpicker-target__icon",
|
|
253
|
-
children: /*#__PURE__*/jsx(Down, {
|
|
254
|
-
size: 16
|
|
255
|
-
})
|
|
256
|
-
})]
|
|
257
|
-
})]
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
266
|
return /*#__PURE__*/jsx(Dropdown, _objectSpread(_objectSpread({
|
|
261
267
|
className: "neeto-ui-colorpicker__dropdown",
|
|
262
268
|
closeOnSelect: false,
|
|
263
|
-
customTarget: /*#__PURE__*/jsx(Target, {
|
|
264
|
-
size: size
|
|
265
|
-
}),
|
|
266
269
|
label: colorValue,
|
|
267
270
|
position: "bottom-start"
|
|
268
271
|
}, _objectSpread(_objectSpread({}, dropdownProps), {}, {
|
|
269
272
|
onClose: onClose
|
|
270
273
|
})), {}, {
|
|
274
|
+
customTarget: /*#__PURE__*/jsx(Target, {
|
|
275
|
+
color: color,
|
|
276
|
+
colorValue: colorValue,
|
|
277
|
+
showHexValue: showHexValue,
|
|
278
|
+
size: size
|
|
279
|
+
}),
|
|
271
280
|
dropdownProps: _objectSpread(_objectSpread({}, dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.dropdownProps), portalProps),
|
|
272
281
|
children: /*#__PURE__*/jsxs("div", {
|
|
273
282
|
className: "neeto-ui-colorpicker__popover",
|
|
274
283
|
children: [showPicker && /*#__PURE__*/jsxs(Fragment, {
|
|
275
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
284
|
+
children: [showHexPicker && /*#__PURE__*/jsx("div", {
|
|
276
285
|
className: "neeto-ui-colorpicker__pointer",
|
|
277
286
|
"data-testid": "neeto-color-picker-section",
|
|
278
287
|
children: /*#__PURE__*/jsx(PickerComponent, {
|
package/dist/ColorPicker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.js","sources":["../node_modules/use-eye-dropper/lib/use-eye-dropper.module.js","../node_modules/use-eye-dropper/lib/index.module.js","../src/components/ColorPicker/constants.js","../src/components/ColorPicker/Palette.jsx","../src/components/ColorPicker/index.jsx"],"sourcesContent":["import{useMemo as r,useRef as o,useCallback as n,useEffect as t,useState as e}from\"react\";const i=()=>\"undefined\"!=typeof window&&\"EyeDropper\"in window,s=()=>{throw new Error(\"Unsupported browser.\")},a=a=>{const c=r(()=>{var r;return(r=i()&&new EyeDropper(a))?EyeDropper.prototype.open.bind(r):s},[a]),[p,w]=(()=>{const r=o(),[s,a]=e(!1);t(()=>(r.current=!0,a(i()),()=>{r.current=!1}),[]);const c=n(()=>s,[s]);return[r,c]})(),f=o(),u=n(()=>{void 0!==f.current&&f.current.abort()},[f]),d=n(async function(r){void 0===r&&(r={}),u();const{signal:o,...n}=r,t=new AbortController;f.current=t;const e=void 0!==o?(r=>{if(\"any\"in AbortSignal)return AbortSignal.any(r);const o=new AbortController,n=()=>{o.abort();for(const o of r)o.removeEventListener(\"abort\",n)};for(const o of r){if(o.aborted){n();break}o.addEventListener(\"abort\",n)}return o.signal})([o,t.signal]):t.signal;try{return await c({...n,signal:e})}catch(r){throw p.current||(r.canceled=!0),r}},[f,p,u,c]);return t(()=>u,[u]),{open:d,close:u,isSupported:w}};export{a as default};\n","import { default as DropperDev } from './use-eye-dropper.module.dev.js'\nimport { default as Dropper } from './use-eye-dropper.module.js'\n\nexport default process.env.NODE_ENV === 'production' ? Dropper : DropperDev\n","export const DEFAULT_PALETTE_COLORS = [\n { hex: \"#FFFFFF\" },\n { hex: \"#D6D6D6\" },\n { hex: \"#0A0E13\" },\n { hex: \"#FECE1E\" },\n { hex: \"#F32E48\" },\n { hex: \"#02C39A\" },\n { hex: \"#2A79C4\" },\n { hex: \"#B3E5FC\" },\n { hex: \"#C3C6F9\" },\n { hex: \"#8064CE\" },\n { hex: \"#FE861E\" },\n { hex: \"#FF7DC9\" },\n { hex: \"#028090\" },\n { hex: \"#095482\" },\n];\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport tinycolor from \"tinycolor2\";\n\nimport { DEFAULT_PALETTE_COLORS } from \"./constants\";\n\nconst Palette = ({ color, colorList = DEFAULT_PALETTE_COLORS, onChange }) => (\n <div className=\"neeto-ui-flex neeto-ui-flex-row neeto-ui-flex-wrap neeto-ui-items-start neeto-ui-justify-start neeto-ui-color-palette neeto-ui-gap-1\">\n {colorList.map(item => {\n const { hex, rgb } = item;\n const colorObject = tinycolor(hex ?? rgb);\n const isTransparent = colorObject.getAlpha() === 0;\n const isActive = Boolean(\n // hex is case insensitive.\n color?.toLocaleLowerCase() === hex?.toLocaleLowerCase() || color === rgb\n );\n\n return (\n <div\n data-testid=\"color-palette-item\"\n key={hex ?? rgb}\n className={classnames(\n \"neeto-ui-color-palette__item neeto-ui-border\",\n { active: isActive }\n )}\n onClick={() => onChange(hex ?? rgb)}\n >\n <div\n style={{ backgroundColor: hex ?? rgb }}\n className={classnames({\n \"transparent-bg-pattern\": isTransparent,\n })}\n />\n </div>\n );\n })}\n </div>\n);\n\nPalette.propTypes = {\n color: PropTypes.string,\n colorList: PropTypes.arrayOf(\n PropTypes.shape({\n hex: PropTypes.string,\n rgb: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n r: PropTypes.number,\n g: PropTypes.number,\n b: PropTypes.number,\n }),\n ]),\n })\n ),\n onChange: PropTypes.func,\n};\n\nexport default Palette;\n","import React, { useState, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { Down, ColorPicker as ColorPickerIcon } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\nimport {\n HexColorPicker,\n HexColorInput,\n HexAlphaColorPicker,\n} from \"react-colorful\";\nimport { useTranslation } from \"react-i18next\";\nimport tinycolor from \"tinycolor2\";\nimport useEyeDropper from \"use-eye-dropper\";\n\nimport Button from \"components/Button\";\nimport Dropdown from \"components/Dropdown\";\nimport Typography from \"components/Typography\";\nimport { getLocale, noop } from \"utils\";\n\nimport useRecentlyUsedColors from \"./hooks/useRecentlyUsedColors\";\nimport Palette from \"./Palette\";\n\nconst TARGET_SIZES = {\n large: \"large\",\n medium: \"medium\",\n small: \"small\",\n};\n\nconst ColorPicker = ({\n color = \"\",\n size = TARGET_SIZES.large,\n onChange = noop,\n dropdownProps,\n showEyeDropper = true,\n showHexValue = false,\n showTransparencyControl = false,\n showPicker = true,\n portalProps,\n colorPalette,\n showRecentlyUsedColors = showPicker,\n}) => {\n const { t, i18n } = useTranslation();\n const [colorInternal, setColorInternal] = useState(color);\n const [isColorSelected, setIsColorSelected] = useState(false);\n const hexColorInputValue = useRef(\"\");\n const { open, isSupported } = useEyeDropper({ pickRadius: 3 });\n const [recentlyUsedColors, setRecentlyUsedColors] = useRecentlyUsedColors();\n\n const PickerComponent = showTransparencyControl\n ? HexAlphaColorPicker\n : HexColorPicker;\n\n const colorValue = color ?? colorInternal ?? \"\";\n\n const getColor = colorValue => {\n const color = tinycolor(colorValue);\n\n if (color.isValid()) {\n let hex = color.toHexString();\n // return `transparent` for transparent colors.\n if (color.getAlpha() === 0) hex = colorValue;\n else if (showTransparencyControl) hex = color.toHex8String();\n\n return { hex, rgb: color.toRgb() };\n }\n\n return { hex: colorValue, rgb: colorValue };\n };\n\n const onColorChange = color => {\n setIsColorSelected(true);\n const changeHandler = onChange ?? setColorInternal;\n\n changeHandler(getColor(color));\n };\n\n const onColorInputChange = hex => {\n // HexColorInput onChange will trigger only if the input value is a valid color\n hexColorInputValue.current = hex;\n if (hex.length !== (showTransparencyControl ? 9 : 7)) return;\n\n onColorChange(hex);\n hexColorInputValue.current = \"\";\n };\n\n const onBlur = () => {\n if (!hexColorInputValue.current) return;\n\n onColorChange(hexColorInputValue.current);\n hexColorInputValue.current = \"\";\n };\n\n const pickColor = async () => {\n try {\n const colorResponse = await open();\n const hex = tinycolor(colorResponse.sRGBHex).toHexString();\n onColorChange(hex);\n } catch {\n // Ensures component is still mounted\n // before calling setState\n // if (!e.canceled) setError(e);\n }\n };\n\n const onClose = () => {\n if (!showRecentlyUsedColors || !isColorSelected) return;\n\n const newColor = getColor(colorValue);\n\n const recentColorsExcludingNew = recentlyUsedColors.filter(\n ({ hex }) => hex !== newColor.hex\n );\n\n const updatedColors = [newColor, ...recentColorsExcludingNew];\n\n if (updatedColors.length > 14) updatedColors.pop();\n\n setRecentlyUsedColors(updatedColors);\n setIsColorSelected(false);\n };\n\n const Target = ({ size }) => (\n <button\n data-cy=\"color-picker-target\"\n data-testid=\"neeto-color-picker\"\n type=\"button\"\n className={classnames(\"neeto-ui-colorpicker__target\", {\n \"neeto-ui-colorpicker__target-size--large\": size === TARGET_SIZES.large,\n \"neeto-ui-colorpicker__target-size--medium\":\n size === TARGET_SIZES.medium,\n \"neeto-ui-colorpicker__target-size--small\": size === TARGET_SIZES.small,\n })}\n >\n {showHexValue && (\n <span className=\"neeto-ui-colorpicker-target__code\">{color}</span>\n )}\n <span className=\"neeto-ui-colorpicker-target__color-wrapper\">\n <span\n className=\"neeto-ui-colorpicker-target__color neeto-ui-border-gray-200\"\n style={{ backgroundColor: colorValue }}\n />\n <span className=\"neeto-ui-colorpicker-target__icon\">\n <Down size={16} />\n </span>\n </span>\n </button>\n );\n\n return (\n <Dropdown\n className=\"neeto-ui-colorpicker__dropdown\"\n closeOnSelect={false}\n customTarget={<Target {...{ size }} />}\n label={colorValue}\n position=\"bottom-start\"\n {...{ ...dropdownProps, onClose }}\n dropdownProps={{ ...dropdownProps?.dropdownProps, ...portalProps }}\n >\n <div className=\"neeto-ui-colorpicker__popover\">\n {showPicker && (\n <>\n <div\n className=\"neeto-ui-colorpicker__pointer\"\n data-testid=\"neeto-color-picker-section\"\n >\n <PickerComponent color={colorValue} onChange={onColorChange} />\n </div>\n <div className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-mt-3 neeto-ui-gap-2\">\n {showEyeDropper && isSupported() && (\n <Button\n className=\"neeto-ui-colorpicker__eyedropper-btn\"\n icon={ColorPickerIcon}\n size=\"small\"\n style=\"text\"\n type=\"button\"\n onClick={pickColor}\n />\n )}\n <div className=\"neeto-ui-input__wrapper\">\n <div\n className=\"neeto-ui-colorpicker__input neeto-ui-input neeto-ui-input--small\"\n data-cy=\"colorpicker-editable-input\"\n >\n <HexColorInput\n {...{ onBlur }}\n prefixed\n alpha={!!showTransparencyControl}\n color={colorValue}\n data-cy=\"colorpicker-editable-input-textbox\"\n onChange={onColorInputChange}\n />\n </div>\n </div>\n </div>\n </>\n )}\n <div\n data-testid=\"color-palette\"\n className={classnames(\"neeto-ui-colorpicker__palette-wrapper\", {\n \"neeto-ui-colorpicker__palette-wrapper--hidden-picker\": !showPicker,\n \"neeto-ui-pt-3 neeto-ui-border-t neeto-ui-border-gray-200\":\n showPicker,\n })}\n >\n <Palette\n {...{ color }}\n colorList={colorPalette}\n onChange={onColorChange}\n />\n </div>\n {showRecentlyUsedColors && recentlyUsedColors.length > 0 && (\n <div\n className=\"neeto-ui-colorpicker__palette-wrapper neeto-ui-border-t neeto-ui-border-gray-200 neeto-ui-pt-3\"\n data-testid=\"color-palette-recently-used\"\n >\n <Typography\n className=\"neeto-ui-text-gray-600 mb-2\"\n style=\"body3\"\n weight=\"medium\"\n >\n {getLocale(i18n, t, \"neetoui.colorPicker.recentlyUsed\")}\n </Typography>\n <Palette colorList={recentlyUsedColors} onChange={onColorChange} />\n </div>\n )}\n </div>\n </Dropdown>\n );\n};\n\nColorPicker.propTypes = {\n /**\n * To specify the color value.\n */\n color: PropTypes.string,\n /**\n * <div class=\"neeto-ui-tag neeto-ui-tag--size-small neeto-ui-tag--style-outline neeto-ui-tag--style-success mb-2\">\n * New\n * </div>\n * To set the size of the target.\n */\n size: PropTypes.oneOf(Object.values(TARGET_SIZES)),\n /**\n * To specify the action to be triggered on changing the color.\n */\n onChange: PropTypes.func,\n /**\n * To specify the colors shown in the palette.\n */\n colorPalette: PropTypes.arrayOf(\n PropTypes.shape({ hex: PropTypes.string, rgb: PropTypes.string })\n ),\n /**\n * Shows eye dropper to pick color.\n */\n showEyeDropper: PropTypes.bool,\n /**\n * To show hex value near to the color in the dropdown.\n * By default it will be enabled.\n */\n showHexValue: PropTypes.bool,\n /**\n * To show transparency control. By default it will be hidden.\n */\n showTransparencyControl: PropTypes.bool,\n /**\n * To show the color picker. Used to hide the picker in cases where only palette is required. By default it will be true.\n */\n showPicker: PropTypes.bool,\n /**\n * To specify the props to be passed to the dropdown portal.\n */\n portalProps: PropTypes.object,\n /**\n * To show the recently used colors.\n */\n showRecentlyUsedColors: PropTypes.bool,\n};\n\nexport default ColorPicker;\n"],"names":["r","o","e","t","n","Dropper","DEFAULT_PALETTE_COLORS","hex","Palette","_ref","color","_ref$colorList","colorList","onChange","_jsx","className","children","map","item","rgb","colorObject","tinycolor","isTransparent","getAlpha","isActive","Boolean","toLocaleLowerCase","classnames","active","onClick","style","backgroundColor","TARGET_SIZES","large","medium","small","ColorPicker","_ref2","_ref$color","_ref$size","size","_ref$onChange","noop","dropdownProps","_ref$showEyeDropper","showEyeDropper","_ref$showHexValue","showHexValue","_ref$showTransparency","showTransparencyControl","_ref$showPicker","showPicker","portalProps","colorPalette","_ref$showRecentlyUsed","showRecentlyUsedColors","_useTranslation","useTranslation","i18n","_useState","useState","_useState2","_slicedToArray","colorInternal","setColorInternal","_useState3","_useState4","isColorSelected","setIsColorSelected","hexColorInputValue","useRef","_useEyeDropper","useEyeDropper","pickRadius","open","isSupported","_useRecentlyUsedColor","useRecentlyUsedColors","_useRecentlyUsedColor2","recentlyUsedColors","setRecentlyUsedColors","PickerComponent","HexAlphaColorPicker","HexColorPicker","colorValue","getColor","isValid","toHexString","toHex8String","toRgb","onColorChange","changeHandler","onColorInputChange","current","length","onBlur","pickColor","_ref3","_asyncToGenerator","_regeneratorRuntime","mark","_callee","colorResponse","wrap","_context","prev","next","sent","sRGBHex","_t","stop","apply","arguments","onClose","newColor","recentColorsExcludingNew","filter","_ref4","updatedColors","concat","_toConsumableArray","pop","Target","_ref5","_jsxs","type","Down","Dropdown","_objectSpread","closeOnSelect","customTarget","label","position","_Fragment","Button","icon","ColorPickerIcon","HexColorInput","prefixed","alpha","Typography","weight","getLocale"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA0F,MAAM,CAAC,CAAC,IAAI,WAAW,EAAE,OAAO,MAAM,EAAE,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAACA,OAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAACC,MAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,QAAC,CAAC,KAAE,CAAC,CAACC,SAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAACC,WAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAACH,MAAC,EAAE,CAAC,CAAC,CAAC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ColorPicker.js","sources":["../node_modules/use-eye-dropper/lib/use-eye-dropper.module.js","../node_modules/use-eye-dropper/lib/index.module.js","../src/components/ColorPicker/constants.js","../src/components/ColorPicker/Palette.jsx","../src/components/ColorPicker/Target.jsx","../src/components/ColorPicker/index.jsx"],"sourcesContent":["import{useMemo as r,useRef as o,useCallback as n,useEffect as t,useState as e}from\"react\";const i=()=>\"undefined\"!=typeof window&&\"EyeDropper\"in window,s=()=>{throw new Error(\"Unsupported browser.\")},a=a=>{const c=r(()=>{var r;return(r=i()&&new EyeDropper(a))?EyeDropper.prototype.open.bind(r):s},[a]),[p,w]=(()=>{const r=o(),[s,a]=e(!1);t(()=>(r.current=!0,a(i()),()=>{r.current=!1}),[]);const c=n(()=>s,[s]);return[r,c]})(),f=o(),u=n(()=>{void 0!==f.current&&f.current.abort()},[f]),d=n(async function(r){void 0===r&&(r={}),u();const{signal:o,...n}=r,t=new AbortController;f.current=t;const e=void 0!==o?(r=>{if(\"any\"in AbortSignal)return AbortSignal.any(r);const o=new AbortController,n=()=>{o.abort();for(const o of r)o.removeEventListener(\"abort\",n)};for(const o of r){if(o.aborted){n();break}o.addEventListener(\"abort\",n)}return o.signal})([o,t.signal]):t.signal;try{return await c({...n,signal:e})}catch(r){throw p.current||(r.canceled=!0),r}},[f,p,u,c]);return t(()=>u,[u]),{open:d,close:u,isSupported:w}};export{a as default};\n","import { default as DropperDev } from './use-eye-dropper.module.dev.js'\nimport { default as Dropper } from './use-eye-dropper.module.js'\n\nexport default process.env.NODE_ENV === 'production' ? Dropper : DropperDev\n","export const DEFAULT_PALETTE_COLORS = [\n { hex: \"#FFFFFF\" },\n { hex: \"#D6D6D6\" },\n { hex: \"#0A0E13\" },\n { hex: \"#FECE1E\" },\n { hex: \"#F32E48\" },\n { hex: \"#02C39A\" },\n { hex: \"#2A79C4\" },\n { hex: \"#B3E5FC\" },\n { hex: \"#C3C6F9\" },\n { hex: \"#8064CE\" },\n { hex: \"#FE861E\" },\n { hex: \"#FF7DC9\" },\n { hex: \"#028090\" },\n { hex: \"#095482\" },\n];\n\nexport const TARGET_SIZES = {\n large: \"large\",\n medium: \"medium\",\n small: \"small\",\n};\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport tinycolor from \"tinycolor2\";\n\nimport { DEFAULT_PALETTE_COLORS } from \"./constants\";\n\nconst Palette = ({ color, colorList = DEFAULT_PALETTE_COLORS, onChange }) => (\n <div className=\"neeto-ui-flex neeto-ui-flex-row neeto-ui-flex-wrap neeto-ui-items-start neeto-ui-justify-start neeto-ui-color-palette neeto-ui-gap-1\">\n {colorList.map(item => {\n const { hex, rgb } = item;\n const colorObject = tinycolor(hex ?? rgb);\n const isTransparent = colorObject.getAlpha() === 0;\n const isActive = Boolean(\n // hex is case insensitive.\n color?.toLocaleLowerCase() === hex?.toLocaleLowerCase() || color === rgb\n );\n\n return (\n <div\n data-testid=\"color-palette-item\"\n key={hex ?? rgb}\n className={classnames(\n \"neeto-ui-color-palette__item neeto-ui-border\",\n { active: isActive }\n )}\n onClick={() => onChange(hex ?? rgb)}\n >\n <div\n style={{ backgroundColor: hex ?? rgb }}\n className={classnames({\n \"transparent-bg-pattern\": isTransparent,\n })}\n />\n </div>\n );\n })}\n </div>\n);\n\nPalette.propTypes = {\n color: PropTypes.string,\n colorList: PropTypes.arrayOf(\n PropTypes.shape({\n hex: PropTypes.string,\n rgb: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n r: PropTypes.number,\n g: PropTypes.number,\n b: PropTypes.number,\n }),\n ]),\n })\n ),\n onChange: PropTypes.func,\n};\n\nexport default Palette;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { Down } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\n\nimport { TARGET_SIZES } from \"./constants\";\n\nconst Target = ({ size, showHexValue, color, colorValue }) => (\n <button\n data-cy=\"color-picker-target\"\n data-testid=\"neeto-color-picker\"\n type=\"button\"\n className={classnames(\"neeto-ui-colorpicker__target\", {\n \"neeto-ui-colorpicker__target-size--large\": size === TARGET_SIZES.large,\n \"neeto-ui-colorpicker__target-size--medium\": size === TARGET_SIZES.medium,\n \"neeto-ui-colorpicker__target-size--small\": size === TARGET_SIZES.small,\n })}\n >\n {showHexValue && (\n <span className=\"neeto-ui-colorpicker-target__code\">{color}</span>\n )}\n <span className=\"neeto-ui-colorpicker-target__color-wrapper\">\n <span\n className=\"neeto-ui-colorpicker-target__color neeto-ui-border-gray-200\"\n style={{ backgroundColor: colorValue }}\n />\n <span className=\"neeto-ui-colorpicker-target__icon\">\n <Down size={16} />\n </span>\n </span>\n </button>\n);\n\nTarget.propTypes = {\n size: PropTypes.oneOf(Object.values(TARGET_SIZES)),\n showHexValue: PropTypes.bool,\n color: PropTypes.string,\n colorValue: PropTypes.string,\n};\n\nexport default Target;\n","import React, { useState, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { ColorPicker as ColorPickerIcon } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\nimport {\n HexColorPicker,\n HexColorInput,\n HexAlphaColorPicker,\n} from \"react-colorful\";\nimport { useTranslation } from \"react-i18next\";\nimport tinycolor from \"tinycolor2\";\nimport useEyeDropper from \"use-eye-dropper\";\n\nimport Button from \"components/Button\";\nimport Dropdown from \"components/Dropdown\";\nimport Typography from \"components/Typography\";\nimport { getLocale, noop } from \"utils\";\n\nimport useRecentlyUsedColors from \"./hooks/useRecentlyUsedColors\";\nimport Palette from \"./Palette\";\nimport Target from \"./Target\";\nimport { TARGET_SIZES } from \"./constants\";\n\nconst ColorPicker = ({\n color = \"\",\n size = TARGET_SIZES.large,\n onChange = noop,\n dropdownProps,\n showEyeDropper = true,\n showHexValue = false,\n showTransparencyControl = false,\n showPicker = true,\n showHexPicker = true,\n portalProps,\n colorPalette,\n showRecentlyUsedColors = showPicker,\n}) => {\n const { t, i18n } = useTranslation();\n const [colorInternal, setColorInternal] = useState(color);\n const [isColorSelected, setIsColorSelected] = useState(false);\n const hexColorInputValue = useRef(\"\");\n const { open, isSupported } = useEyeDropper({ pickRadius: 3 });\n const [recentlyUsedColors, setRecentlyUsedColors] = useRecentlyUsedColors();\n\n const PickerComponent = showTransparencyControl\n ? HexAlphaColorPicker\n : HexColorPicker;\n\n const colorValue = color ?? colorInternal ?? \"\";\n\n const getColor = colorValue => {\n const color = tinycolor(colorValue);\n\n if (color.isValid()) {\n let hex = color.toHexString();\n // return `transparent` for transparent colors.\n if (color.getAlpha() === 0) hex = colorValue;\n else if (showTransparencyControl) hex = color.toHex8String();\n\n return { hex, rgb: color.toRgb() };\n }\n\n return { hex: colorValue, rgb: colorValue };\n };\n\n const onColorChange = color => {\n setIsColorSelected(true);\n const changeHandler = onChange ?? setColorInternal;\n\n changeHandler(getColor(color));\n };\n\n const onColorInputChange = hex => {\n // HexColorInput onChange will trigger only if the input value is a valid color\n hexColorInputValue.current = hex;\n if (hex.length !== (showTransparencyControl ? 9 : 7)) return;\n\n onColorChange(hex);\n hexColorInputValue.current = \"\";\n };\n\n const onBlur = () => {\n if (!hexColorInputValue.current) return;\n\n onColorChange(hexColorInputValue.current);\n hexColorInputValue.current = \"\";\n };\n\n const pickColor = async () => {\n try {\n const colorResponse = await open();\n const hex = tinycolor(colorResponse.sRGBHex).toHexString();\n onColorChange(hex);\n } catch {\n // Ensures component is still mounted\n // before calling setState\n // if (!e.canceled) setError(e);\n }\n };\n\n const onClose = () => {\n if (!showRecentlyUsedColors || !isColorSelected) return;\n\n const newColor = getColor(colorValue);\n\n const recentColorsExcludingNew = recentlyUsedColors.filter(\n ({ hex }) => hex !== newColor.hex\n );\n\n const updatedColors = [newColor, ...recentColorsExcludingNew];\n\n if (updatedColors.length > 14) updatedColors.pop();\n\n setRecentlyUsedColors(updatedColors);\n setIsColorSelected(false);\n };\n\n return (\n <Dropdown\n className=\"neeto-ui-colorpicker__dropdown\"\n closeOnSelect={false}\n label={colorValue}\n position=\"bottom-start\"\n {...{ ...dropdownProps, onClose }}\n customTarget={<Target {...{ color, colorValue, showHexValue, size }} />}\n dropdownProps={{ ...dropdownProps?.dropdownProps, ...portalProps }}\n >\n <div className=\"neeto-ui-colorpicker__popover\">\n {showPicker && (\n <>\n {showHexPicker && (\n <div\n className=\"neeto-ui-colorpicker__pointer\"\n data-testid=\"neeto-color-picker-section\"\n >\n <PickerComponent color={colorValue} onChange={onColorChange} />\n </div>\n )}\n <div className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-mt-3 neeto-ui-gap-2\">\n {showEyeDropper && isSupported() && (\n <Button\n className=\"neeto-ui-colorpicker__eyedropper-btn\"\n icon={ColorPickerIcon}\n size=\"small\"\n style=\"text\"\n type=\"button\"\n onClick={pickColor}\n />\n )}\n <div className=\"neeto-ui-input__wrapper\">\n <div\n className=\"neeto-ui-colorpicker__input neeto-ui-input neeto-ui-input--small\"\n data-cy=\"colorpicker-editable-input\"\n >\n <HexColorInput\n {...{ onBlur }}\n prefixed\n alpha={!!showTransparencyControl}\n color={colorValue}\n data-cy=\"colorpicker-editable-input-textbox\"\n onChange={onColorInputChange}\n />\n </div>\n </div>\n </div>\n </>\n )}\n <div\n data-testid=\"color-palette\"\n className={classnames(\"neeto-ui-colorpicker__palette-wrapper\", {\n \"neeto-ui-colorpicker__palette-wrapper--hidden-picker\": !showPicker,\n \"neeto-ui-pt-3 neeto-ui-border-t neeto-ui-border-gray-200\":\n showPicker,\n })}\n >\n <Palette\n {...{ color }}\n colorList={colorPalette}\n onChange={onColorChange}\n />\n </div>\n {showRecentlyUsedColors && recentlyUsedColors.length > 0 && (\n <div\n className=\"neeto-ui-colorpicker__palette-wrapper neeto-ui-border-t neeto-ui-border-gray-200 neeto-ui-pt-3\"\n data-testid=\"color-palette-recently-used\"\n >\n <Typography\n className=\"neeto-ui-text-gray-600 mb-2\"\n style=\"body3\"\n weight=\"medium\"\n >\n {getLocale(i18n, t, \"neetoui.colorPicker.recentlyUsed\")}\n </Typography>\n <Palette colorList={recentlyUsedColors} onChange={onColorChange} />\n </div>\n )}\n </div>\n </Dropdown>\n );\n};\n\nColorPicker.propTypes = {\n /**\n * To specify the color value.\n */\n color: PropTypes.string,\n /**\n * <div class=\"neeto-ui-tag neeto-ui-tag--size-small neeto-ui-tag--style-outline neeto-ui-tag--style-success mb-2\">\n * New\n * </div>\n * To set the size of the target.\n */\n size: PropTypes.oneOf(Object.values(TARGET_SIZES)),\n /**\n * To specify the action to be triggered on changing the color.\n */\n onChange: PropTypes.func,\n /**\n * To specify the colors shown in the palette.\n */\n colorPalette: PropTypes.arrayOf(\n PropTypes.shape({ hex: PropTypes.string, rgb: PropTypes.string })\n ),\n /**\n * Shows eye dropper to pick color.\n */\n showEyeDropper: PropTypes.bool,\n /**\n * To show hex value near to the color in the dropdown.\n * By default it will be enabled.\n */\n showHexValue: PropTypes.bool,\n /**\n * To show transparency control. By default it will be hidden.\n */\n showTransparencyControl: PropTypes.bool,\n /**\n * To show the color picker. Used to hide the picker in cases where only palette is required. By default it will be true.\n */\n showPicker: PropTypes.bool,\n /**\n * To show the hex color picker (color pointer). Used to hide the picker while keeping the hex input and eye dropper. By default it will be true.\n */\n showHexPicker: PropTypes.bool,\n /**\n * To specify the props to be passed to the dropdown portal.\n */\n portalProps: PropTypes.object,\n /**\n * To show the recently used colors.\n */\n showRecentlyUsedColors: PropTypes.bool,\n};\n\nexport default ColorPicker;\n"],"names":["r","o","e","t","n","Dropper","DEFAULT_PALETTE_COLORS","hex","TARGET_SIZES","large","medium","small","Palette","_ref","color","_ref$colorList","colorList","onChange","_jsx","className","children","map","item","rgb","colorObject","tinycolor","isTransparent","getAlpha","isActive","Boolean","toLocaleLowerCase","classnames","active","onClick","style","backgroundColor","Target","size","showHexValue","colorValue","_jsxs","type","Down","ColorPicker","_ref2","_ref$color","_ref$size","_ref$onChange","noop","dropdownProps","_ref$showEyeDropper","showEyeDropper","_ref$showHexValue","_ref$showTransparency","showTransparencyControl","_ref$showPicker","showPicker","_ref$showHexPicker","showHexPicker","portalProps","colorPalette","_ref$showRecentlyUsed","showRecentlyUsedColors","_useTranslation","useTranslation","i18n","_useState","useState","_useState2","_slicedToArray","colorInternal","setColorInternal","_useState3","_useState4","isColorSelected","setIsColorSelected","hexColorInputValue","useRef","_useEyeDropper","useEyeDropper","pickRadius","open","isSupported","_useRecentlyUsedColor","useRecentlyUsedColors","_useRecentlyUsedColor2","recentlyUsedColors","setRecentlyUsedColors","PickerComponent","HexAlphaColorPicker","HexColorPicker","getColor","isValid","toHexString","toHex8String","toRgb","onColorChange","changeHandler","onColorInputChange","current","length","onBlur","pickColor","_ref3","_asyncToGenerator","_regeneratorRuntime","mark","_callee","colorResponse","wrap","_context","prev","next","sent","sRGBHex","_t","stop","apply","arguments","onClose","newColor","recentColorsExcludingNew","filter","_ref4","updatedColors","concat","_toConsumableArray","pop","Dropdown","_objectSpread","closeOnSelect","label","position","customTarget","_Fragment","Button","icon","ColorPickerIcon","HexColorInput","prefixed","alpha","Typography","weight","getLocale"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA0F,MAAM,CAAC,CAAC,IAAI,WAAW,EAAE,OAAO,MAAM,EAAE,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAACA,OAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAACC,MAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,QAAC,CAAC,KAAE,CAAC,C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AAA,SAAS,EAAE4C,YAAa;AACxB3C,UAAAA,QAAQ,EAAE+E;SACX;OACE,CAAC,EACLlC,sBAAsB,IAAIwB,kBAAkB,CAACc,MAAM,GAAG,CAAC,iBACtD5D,IAAA,CAAA,KAAA,EAAA;AACErB,QAAAA,SAAS,EAAC,gGAAgG;AAC1G,QAAA,aAAA,EAAY,6BAA6B;QAAAC,QAAA,EAAA,cAEzCF,GAAA,CAAC2H,UAAU,EAAA;AACT1H,UAAAA,SAAS,EAAC,6BAA6B;AACvCe,UAAAA,KAAK,EAAC,OAAO;AACb4G,UAAAA,MAAM,EAAC,QAAQ;AAAA1H,UAAAA,QAAA,EAEd2H,SAAS,CAAC9E,IAAI,EAAE9D,CAAC,EAAE,kCAAkC;AAAC,SAC7C,CAAC,eACbe,GAAA,CAACN,OAAO,EAAA;AAACI,UAAAA,SAAS,EAAEsE,kBAAmB;AAACrE,UAAAA,QAAQ,EAAE+E;AAAc,SAAE,CAAC;AAAA,OAChE,CACN;KACE;AAAC,GAAA,CACE,CAAC;AAEf;;;;","x_google_ignoreList":[0,1]}
|
package/dist/DatePicker.js
CHANGED
|
@@ -24,14 +24,14 @@ import './Checkbox.js';
|
|
|
24
24
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
25
25
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
26
26
|
import '@babel/runtime/regenerator';
|
|
27
|
-
import '@bigbinary/neeto-icons/Down';
|
|
28
27
|
import '@bigbinary/neeto-icons/ColorPicker';
|
|
29
28
|
import 'react-colorful';
|
|
30
29
|
import 'react-i18next';
|
|
31
|
-
import './useRecentlyUsedColors-
|
|
30
|
+
import './useRecentlyUsedColors-C18GFyJC.js';
|
|
32
31
|
import './Dropdown.js';
|
|
33
|
-
import './index-
|
|
34
|
-
|
|
32
|
+
import './index-BbZEp6Op.js';
|
|
33
|
+
import '@bigbinary/neeto-icons/Down';
|
|
34
|
+
export { D as default } from './index-BRcfDAre.js';
|
|
35
35
|
import './Input.js';
|
|
36
36
|
import './Label.js';
|
|
37
37
|
import './MultiEmailInput.js';
|
|
@@ -40,7 +40,7 @@ import './useId-Jj9hXm-g.js';
|
|
|
40
40
|
import '@bigbinary/neeto-hotkeys';
|
|
41
41
|
import './overlayManager.js';
|
|
42
42
|
import 'qs';
|
|
43
|
-
import './Textarea-
|
|
43
|
+
import './Textarea-CoY3q1mA.js';
|
|
44
44
|
import './Pane.js';
|
|
45
45
|
import './Popover.js';
|
|
46
46
|
import 'framer-motion';
|
|
@@ -71,14 +71,13 @@ import 'react-drag-listview';
|
|
|
71
71
|
import '@bigbinary/neeto-icons/DownArrow';
|
|
72
72
|
import '@bigbinary/neeto-icons/UpArrow';
|
|
73
73
|
import '@bigbinary/neeto-icons/InfoRound';
|
|
74
|
-
import './useRestoreScrollPosition-C0t8os3c.js';
|
|
75
74
|
import 'react-resizable';
|
|
76
75
|
import './Tag.js';
|
|
77
76
|
import './Toastr.js';
|
|
78
77
|
import 'i18next';
|
|
79
78
|
import 'antd/lib/tree';
|
|
80
79
|
import './TreeSelect.js';
|
|
81
|
-
import './en-
|
|
80
|
+
import './en-DVlE9xuu.js';
|
|
82
81
|
import 'dayjs';
|
|
83
82
|
import 'dayjs/plugin/localeData';
|
|
84
83
|
import 'dayjs/plugin/utc';
|
|
@@ -86,11 +85,19 @@ import 'dayjs/plugin/weekday';
|
|
|
86
85
|
import 'dayjs/plugin/weekOfYear';
|
|
87
86
|
import './Spinner.js';
|
|
88
87
|
import './Tooltip.js';
|
|
89
|
-
import './useOverlayManager-
|
|
88
|
+
import './useOverlayManager-BtEqSq_z.js';
|
|
90
89
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
91
90
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
92
91
|
import '@bigbinary/neeto-icons/Help';
|
|
93
92
|
import '@bigbinary/neeto-icons/Clock';
|
|
93
|
+
import '@bigbinary/neeto-icons/Check';
|
|
94
|
+
import '@bigbinary/neeto-icons/Ascending';
|
|
95
|
+
import '@bigbinary/neeto-icons/Descending';
|
|
96
|
+
import '@bigbinary/neeto-icons/Pin';
|
|
97
|
+
import '@bigbinary/neeto-icons/ColumnToLeft';
|
|
98
|
+
import '@bigbinary/neeto-icons/ColumnToRight';
|
|
99
|
+
import '@bigbinary/neeto-icons/Hide';
|
|
100
|
+
import 'zustand';
|
|
94
101
|
import './constants.js';
|
|
95
102
|
import './Select.js';
|
|
96
103
|
import './react-select-creatable.esm-opiJTCqo.js';
|
|
@@ -107,8 +114,6 @@ import '@babel/runtime/helpers/esm/slicedToArray';
|
|
|
107
114
|
import '@babel/runtime/helpers/esm/typeof';
|
|
108
115
|
import '@babel/runtime/helpers/esm/defineProperty';
|
|
109
116
|
import '@babel/runtime/helpers/toArray';
|
|
110
|
-
import '@bigbinary/neeto-icons/Check';
|
|
111
|
-
import 'zustand';
|
|
112
117
|
import '@bigbinary/neeto-icons/CheckCircle';
|
|
113
118
|
import '@bigbinary/neeto-icons/Warning';
|
|
114
119
|
import '@bigbinary/neeto-icons/Info';
|
package/dist/DatePicker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/Dropdown.js
CHANGED
|
@@ -7,7 +7,7 @@ import classnames from 'classnames';
|
|
|
7
7
|
import Down from '@bigbinary/neeto-icons/Down';
|
|
8
8
|
import { isNil } from 'ramda';
|
|
9
9
|
import Button from './Button.js';
|
|
10
|
-
import { h as hyphenize, n as noop } from './index-
|
|
10
|
+
import { h as hyphenize, n as noop } from './index-BbZEp6Op.js';
|
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
import { isPresent } from '@bigbinary/neeto-cist';
|
|
13
13
|
import Tooltip from './Tooltip.js';
|
|
@@ -17,7 +17,7 @@ import 'tippy.js';
|
|
|
17
17
|
import '@babel/runtime/helpers/classCallCheck';
|
|
18
18
|
import '@babel/runtime/helpers/createClass';
|
|
19
19
|
import 'qs';
|
|
20
|
-
import './en-
|
|
20
|
+
import './en-DVlE9xuu.js';
|
|
21
21
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
22
22
|
import 'dayjs';
|
|
23
23
|
import 'dayjs/plugin/localeData';
|
package/dist/Input.js
CHANGED
|
@@ -8,14 +8,14 @@ import { u as useId } from './useId-Jj9hXm-g.js';
|
|
|
8
8
|
import 'react-router-dom';
|
|
9
9
|
import '@bigbinary/neeto-hotkeys';
|
|
10
10
|
import './overlayManager.js';
|
|
11
|
-
import { h as hyphenize } from './index-
|
|
11
|
+
import { h as hyphenize } from './index-BbZEp6Op.js';
|
|
12
12
|
import 'qs';
|
|
13
13
|
import Label from './Label.js';
|
|
14
14
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
15
15
|
import '@babel/runtime/helpers/classCallCheck';
|
|
16
16
|
import '@babel/runtime/helpers/createClass';
|
|
17
17
|
import '@bigbinary/neeto-cist';
|
|
18
|
-
import './en-
|
|
18
|
+
import './en-DVlE9xuu.js';
|
|
19
19
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
20
20
|
import 'dayjs';
|
|
21
21
|
import 'dayjs/plugin/localeData';
|
package/dist/Modal.js
CHANGED
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import React__default, { useState, useRef } from 'react';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
7
|
-
import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-
|
|
7
|
+
import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-BtEqSq_z.js';
|
|
8
8
|
import Button from './Button.js';
|
|
9
9
|
import 'react-router-dom';
|
|
10
10
|
import 'qs';
|
|
@@ -19,9 +19,9 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
19
19
|
import './overlayManager.js';
|
|
20
20
|
import '@babel/runtime/helpers/classCallCheck';
|
|
21
21
|
import '@babel/runtime/helpers/createClass';
|
|
22
|
-
import './index-
|
|
22
|
+
import './index-BbZEp6Op.js';
|
|
23
23
|
import '@bigbinary/neeto-cist';
|
|
24
|
-
import './en-
|
|
24
|
+
import './en-DVlE9xuu.js';
|
|
25
25
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
26
26
|
import 'dayjs';
|
|
27
27
|
import 'dayjs/plugin/localeData';
|
package/dist/MultiEmailInput.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useRef, useEffect, forwardRef, useState } from 'react';
|
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import { assoc, pluck, mergeLeft, isEmpty } from 'ramda';
|
|
8
8
|
import { c as components, C as CreatableSelect } from './react-select-creatable.esm-opiJTCqo.js';
|
|
9
|
-
import { h as hyphenize, n as noop } from './index-
|
|
9
|
+
import { h as hyphenize, n as noop } from './index-BbZEp6Op.js';
|
|
10
10
|
import _toArray from '@babel/runtime/helpers/toArray';
|
|
11
11
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
12
12
|
import Tag from './Tag.js';
|
|
@@ -35,7 +35,7 @@ import '@babel/runtime/helpers/createSuper';
|
|
|
35
35
|
import '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
36
36
|
import '@babel/runtime/helpers/typeof';
|
|
37
37
|
import 'qs';
|
|
38
|
-
import './en-
|
|
38
|
+
import './en-DVlE9xuu.js';
|
|
39
39
|
import 'dayjs';
|
|
40
40
|
import 'dayjs/plugin/localeData';
|
|
41
41
|
import 'dayjs/plugin/utc';
|
package/dist/Pagination.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useHistory } from 'react-router-dom';
|
|
|
7
7
|
import '@babel/runtime/helpers/slicedToArray';
|
|
8
8
|
import '@bigbinary/neeto-hotkeys';
|
|
9
9
|
import './overlayManager.js';
|
|
10
|
-
import { b as buildUrl } from './index-
|
|
10
|
+
import { b as buildUrl } from './index-BbZEp6Op.js';
|
|
11
11
|
import { u as useQueryParams } from './useQueryParams-BKsf4FPY.js';
|
|
12
12
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -16,7 +16,7 @@ import '@babel/runtime/helpers/createClass';
|
|
|
16
16
|
import '@babel/runtime/helpers/defineProperty';
|
|
17
17
|
import '@bigbinary/neeto-cist';
|
|
18
18
|
import 'qs';
|
|
19
|
-
import './en-
|
|
19
|
+
import './en-DVlE9xuu.js';
|
|
20
20
|
import 'dayjs';
|
|
21
21
|
import 'dayjs/plugin/localeData';
|
|
22
22
|
import 'dayjs/plugin/utc';
|
package/dist/Pane.js
CHANGED
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
7
|
-
import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-
|
|
7
|
+
import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-BtEqSq_z.js';
|
|
8
8
|
import Button from './Button.js';
|
|
9
9
|
import 'react-router-dom';
|
|
10
10
|
import 'qs';
|
|
@@ -18,9 +18,9 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
18
18
|
import './overlayManager.js';
|
|
19
19
|
import '@babel/runtime/helpers/classCallCheck';
|
|
20
20
|
import '@babel/runtime/helpers/createClass';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-BbZEp6Op.js';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
|
-
import './en-
|
|
23
|
+
import './en-DVlE9xuu.js';
|
|
24
24
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
25
25
|
import 'dayjs';
|
|
26
26
|
import 'dayjs/plugin/localeData';
|
package/dist/Radio.js
CHANGED
|
@@ -8,7 +8,7 @@ import { u as useId } from './useId-Jj9hXm-g.js';
|
|
|
8
8
|
import 'react-router-dom';
|
|
9
9
|
import '@bigbinary/neeto-hotkeys';
|
|
10
10
|
import './overlayManager.js';
|
|
11
|
-
import { h as hyphenize } from './index-
|
|
11
|
+
import { h as hyphenize } from './index-BbZEp6Op.js';
|
|
12
12
|
import 'qs';
|
|
13
13
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
14
14
|
import '@bigbinary/neeto-icons/Help';
|
|
@@ -23,7 +23,7 @@ import '@babel/runtime/helpers/classCallCheck';
|
|
|
23
23
|
import '@babel/runtime/helpers/createClass';
|
|
24
24
|
import '@bigbinary/neeto-cist';
|
|
25
25
|
import 'ramda';
|
|
26
|
-
import './en-
|
|
26
|
+
import './en-DVlE9xuu.js';
|
|
27
27
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
28
28
|
import 'dayjs';
|
|
29
29
|
import 'dayjs/plugin/localeData';
|
package/dist/Select.js
CHANGED
|
@@ -27,7 +27,7 @@ import { u as useId } from './useId-Jj9hXm-g.js';
|
|
|
27
27
|
import 'react-router-dom';
|
|
28
28
|
import '@bigbinary/neeto-hotkeys';
|
|
29
29
|
import './overlayManager.js';
|
|
30
|
-
import { h as hyphenize } from './index-
|
|
30
|
+
import { h as hyphenize } from './index-BbZEp6Op.js';
|
|
31
31
|
import 'qs';
|
|
32
32
|
import Label from './Label.js';
|
|
33
33
|
import Spinner from './Spinner.js';
|
|
@@ -41,7 +41,7 @@ import '@babel/runtime/helpers/esm/toConsumableArray';
|
|
|
41
41
|
import '@babel/runtime/helpers/extends';
|
|
42
42
|
import '@babel/runtime/helpers/esm/taggedTemplateLiteral';
|
|
43
43
|
import '@babel/runtime/helpers/esm/typeof';
|
|
44
|
-
import './en-
|
|
44
|
+
import './en-DVlE9xuu.js';
|
|
45
45
|
import 'dayjs';
|
|
46
46
|
import 'dayjs/plugin/localeData';
|
|
47
47
|
import 'dayjs/plugin/utc';
|
package/dist/Sidebar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef, useState, createElement } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import { n as noop } from './index-
|
|
3
|
+
import { n as noop } from './index-BbZEp6Op.js';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import Tooltip from './Tooltip.js';
|
|
6
6
|
import AppSwitcherIcon from '@bigbinary/neeto-icons/AppSwitcher';
|
|
@@ -21,7 +21,7 @@ import '@babel/runtime/helpers/classCallCheck';
|
|
|
21
21
|
import '@babel/runtime/helpers/createClass';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import 'qs';
|
|
24
|
-
import './en-
|
|
24
|
+
import './en-DVlE9xuu.js';
|
|
25
25
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
26
26
|
import 'dayjs';
|
|
27
27
|
import 'dayjs/plugin/localeData';
|
package/dist/Slider.js
CHANGED
|
@@ -11,7 +11,7 @@ import '@babel/runtime/helpers/slicedToArray';
|
|
|
11
11
|
import 'react-router-dom';
|
|
12
12
|
import '@bigbinary/neeto-hotkeys';
|
|
13
13
|
import './overlayManager.js';
|
|
14
|
-
import { h as hyphenize, n as noop, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-
|
|
14
|
+
import { h as hyphenize, n as noop, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-BbZEp6Op.js';
|
|
15
15
|
import 'qs';
|
|
16
16
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
17
|
import 'antd/locale/de_DE';
|
|
@@ -34,7 +34,7 @@ import '@babel/runtime/helpers/classCallCheck';
|
|
|
34
34
|
import '@babel/runtime/helpers/createClass';
|
|
35
35
|
import '@bigbinary/neeto-cist';
|
|
36
36
|
import 'ramda';
|
|
37
|
-
import './en-
|
|
37
|
+
import './en-DVlE9xuu.js';
|
|
38
38
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
39
39
|
import 'dayjs';
|
|
40
40
|
import 'dayjs/plugin/localeData';
|