@bigbinary/neetoui 8.3.44 → 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/ColorPicker.js +49 -40
- package/dist/ColorPicker.js.map +1 -1
- package/dist/DatePicker.js +2 -2
- package/dist/Table.js +1 -1
- package/dist/TimePicker.js +2 -2
- package/dist/TranslationProvider.js +60 -24
- package/dist/TranslationProvider.js.map +1 -1
- package/dist/cjs/ColorPicker.js +49 -40
- package/dist/cjs/ColorPicker.js.map +1 -1
- package/dist/cjs/DatePicker.js +2 -2
- package/dist/cjs/Table.js +1 -1
- package/dist/cjs/TimePicker.js +2 -2
- package/dist/cjs/TranslationProvider.js +60 -24
- package/dist/cjs/TranslationProvider.js.map +1 -1
- package/dist/cjs/{index-i_QMY9OC.js → index-DruCXsxo.js} +2 -2
- package/dist/cjs/{index-i_QMY9OC.js.map → index-DruCXsxo.js.map} +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/{index-cQSKx75O.js → index-BRcfDAre.js} +2 -2
- package/dist/{index-cQSKx75O.js.map → index-BRcfDAre.js.map} +1 -1
- package/dist/index.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/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/package.json +1 -1
- package/types/ColorPicker.d.ts +1 -0
package/dist/ColorPicker.js
CHANGED
|
@@ -5,7 +5,6 @@ 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';
|
|
@@ -15,6 +14,7 @@ import Dropdown from './Dropdown.js';
|
|
|
15
14
|
import Typography from './Typography.js';
|
|
16
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';
|
|
@@ -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,CAA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B;QAAAC,QAAA,EAAA,cAEzCF,GAAA,CAAC8H,UAAU,EAAA;AACT7H,UAAAA,SAAS,EAAC,6BAA6B;AACvCe,UAAAA,KAAK,EAAC,OAAO;AACb+G,UAAAA,MAAM,EAAC,QAAQ;AAAA7H,UAAAA,QAAA,EAEd8H,SAAS,CAACpF,IAAI,EAAEvD,CAAC,EAAE,kCAAkC;AAAC,SAC7C,CAAC,eACbW,GAAA,CAACN,OAAO,EAAA;AAACI,UAAAA,SAAS,EAAEmE,kBAAmB;AAAClE,UAAAA,QAAQ,EAAE6E;AAAc,SAAE,CAAC;AAAA,OAChE,CACN;KACE;AAAC,GAAA,CACE,CAAC;AAEf;;;;","x_google_ignoreList":[0,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/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,KAA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ers/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
30
|
import './useRecentlyUsedColors-C18GFyJC.js';
|
|
32
31
|
import './Dropdown.js';
|
|
33
32
|
import './index-BbZEp6Op.js';
|
|
34
|
-
|
|
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';
|
package/dist/Table.js
CHANGED
|
@@ -22,7 +22,7 @@ import Button from './Button.js';
|
|
|
22
22
|
import Callout from './Callout.js';
|
|
23
23
|
import Typography from './Typography.js';
|
|
24
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
25
|
-
import { a as TABLE_SORT_ORDERS, U as URL_SORT_ORDERS, H as HeaderCellMenu, b as TABLE_PAGINATION_HEIGHT, c as TABLE_ROW_HEIGHT, C as COLUMN_FIXED_VALUES, S as SELECT_ALL_ROWS_CALLOUT_MOBILE_HEIGHT, d as SELECT_ALL_ROWS_CALLOUT_DESKTOP_HEIGHT, u as useRestoreScrollPosition, e as TABLE_DEFAULT_HEADER_HEIGHT, f as TableInfoPane } from './index-
|
|
25
|
+
import { a as TABLE_SORT_ORDERS, U as URL_SORT_ORDERS, H as HeaderCellMenu, b as TABLE_PAGINATION_HEIGHT, c as TABLE_ROW_HEIGHT, C as COLUMN_FIXED_VALUES, S as SELECT_ALL_ROWS_CALLOUT_MOBILE_HEIGHT, d as SELECT_ALL_ROWS_CALLOUT_DESKTOP_HEIGHT, u as useRestoreScrollPosition, e as TABLE_DEFAULT_HEADER_HEIGHT, f as TableInfoPane } from './index-BRcfDAre.js';
|
|
26
26
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
27
27
|
import DownArrow from '@bigbinary/neeto-icons/DownArrow';
|
|
28
28
|
import UpArrow from '@bigbinary/neeto-icons/UpArrow';
|
package/dist/TimePicker.js
CHANGED
|
@@ -21,13 +21,13 @@ import './Checkbox.js';
|
|
|
21
21
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
22
22
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
23
23
|
import '@babel/runtime/regenerator';
|
|
24
|
-
import '@bigbinary/neeto-icons/Down';
|
|
25
24
|
import '@bigbinary/neeto-icons/ColorPicker';
|
|
26
25
|
import 'react-colorful';
|
|
27
26
|
import './useRecentlyUsedColors-C18GFyJC.js';
|
|
28
27
|
import './Dropdown.js';
|
|
29
28
|
import './index-BbZEp6Op.js';
|
|
30
|
-
|
|
29
|
+
import '@bigbinary/neeto-icons/Down';
|
|
30
|
+
export { T as default } from './index-BRcfDAre.js';
|
|
31
31
|
import './Input.js';
|
|
32
32
|
import './Label.js';
|
|
33
33
|
import './MultiEmailInput.js';
|
|
@@ -27,12 +27,17 @@ var neetoui$5 = {
|
|
|
27
27
|
columnInfo: "Spalteninformationen",
|
|
28
28
|
hideColumn: "Spalte ausblenden",
|
|
29
29
|
deleteColumn: "Spalte löschen",
|
|
30
|
-
ascending: "Aufsteigend
|
|
31
|
-
descending: "Absteigend
|
|
30
|
+
ascending: "Aufsteigend",
|
|
31
|
+
descending: "Absteigend",
|
|
32
32
|
allRowsSelected: "Alle Zeilen sind ausgewählt",
|
|
33
33
|
clearSelection: "Klare Auswahl",
|
|
34
34
|
freezeColumn: "Spalte einfrieren",
|
|
35
|
-
unFreezeColumn: "Spalte aufheben"
|
|
35
|
+
unFreezeColumn: "Spalte aufheben",
|
|
36
|
+
moveColumnLeft: "Spalte nach links verschieben",
|
|
37
|
+
moveColumnRight: "Spalte nach rechts verschieben",
|
|
38
|
+
addColumnInfo: "Spalteninformation hinzufügen",
|
|
39
|
+
editColumnInfo: "Spalteninformation bearbeiten",
|
|
40
|
+
info: "Tabelleninformationen"
|
|
36
41
|
},
|
|
37
42
|
timePicker: {
|
|
38
43
|
hours: "Stunden",
|
|
@@ -43,7 +48,8 @@ var neetoui$5 = {
|
|
|
43
48
|
noOptions: "Keine Optionen."
|
|
44
49
|
},
|
|
45
50
|
common: {
|
|
46
|
-
timezone: "Zeitzone"
|
|
51
|
+
timezone: "Zeitzone",
|
|
52
|
+
description: "Beschreibung"
|
|
47
53
|
}
|
|
48
54
|
};
|
|
49
55
|
var deTranslations = {
|
|
@@ -73,12 +79,17 @@ var neetoui$4 = {
|
|
|
73
79
|
columnInfo: "Información de la columna",
|
|
74
80
|
hideColumn: "Ocultar columna",
|
|
75
81
|
deleteColumn: "Eliminar columna",
|
|
76
|
-
ascending: "
|
|
77
|
-
descending: "
|
|
82
|
+
ascending: "Ascendente",
|
|
83
|
+
descending: "Descendente",
|
|
78
84
|
allRowsSelected: "Todas las filas están seleccionadas",
|
|
79
85
|
clearSelection: "Borrar selección",
|
|
80
86
|
freezeColumn: "Congelar columna",
|
|
81
|
-
unFreezeColumn: "Descongelar columna"
|
|
87
|
+
unFreezeColumn: "Descongelar columna",
|
|
88
|
+
moveColumnLeft: "Mover columna a la izquierda",
|
|
89
|
+
moveColumnRight: "Mover columna a la derecha",
|
|
90
|
+
addColumnInfo: "Agregar información de columna",
|
|
91
|
+
editColumnInfo: "Editar información de columna",
|
|
92
|
+
info: "Información de la tabla"
|
|
82
93
|
},
|
|
83
94
|
timePicker: {
|
|
84
95
|
hours: "Horas",
|
|
@@ -89,7 +100,8 @@ var neetoui$4 = {
|
|
|
89
100
|
noOptions: "No hay opciones."
|
|
90
101
|
},
|
|
91
102
|
common: {
|
|
92
|
-
timezone: "Zona horaria"
|
|
103
|
+
timezone: "Zona horaria",
|
|
104
|
+
description: "Descripción"
|
|
93
105
|
}
|
|
94
106
|
};
|
|
95
107
|
var esTranslations = {
|
|
@@ -119,12 +131,17 @@ var neetoui$3 = {
|
|
|
119
131
|
columnInfo: "Informations sur la colonne",
|
|
120
132
|
hideColumn: "Masquer la colonne",
|
|
121
133
|
deleteColumn: "Supprimer la colonne",
|
|
122
|
-
ascending: "
|
|
123
|
-
descending: "
|
|
134
|
+
ascending: "Ascendant",
|
|
135
|
+
descending: "Descendant",
|
|
124
136
|
allRowsSelected: "Toutes les lignes sont sélectionnées",
|
|
125
137
|
clearSelection: "Effacer la sélection",
|
|
126
138
|
freezeColumn: "Geler la colonne",
|
|
127
|
-
unFreezeColumn: "Dégeler la colonne"
|
|
139
|
+
unFreezeColumn: "Dégeler la colonne",
|
|
140
|
+
moveColumnLeft: "Déplacer la colonne vers la gauche",
|
|
141
|
+
moveColumnRight: "Déplacer la colonne vers la droite",
|
|
142
|
+
addColumnInfo: "Ajouter des informations sur la colonne",
|
|
143
|
+
editColumnInfo: "Modifier les informations sur la colonne",
|
|
144
|
+
info: "Informations sur la table"
|
|
128
145
|
},
|
|
129
146
|
timePicker: {
|
|
130
147
|
hours: "Heures",
|
|
@@ -135,7 +152,8 @@ var neetoui$3 = {
|
|
|
135
152
|
noOptions: "Pas d'options."
|
|
136
153
|
},
|
|
137
154
|
common: {
|
|
138
|
-
timezone: "Fuseau horaire"
|
|
155
|
+
timezone: "Fuseau horaire",
|
|
156
|
+
description: "Description"
|
|
139
157
|
}
|
|
140
158
|
};
|
|
141
159
|
var frTranslations = {
|
|
@@ -165,12 +183,17 @@ var neetoui$2 = {
|
|
|
165
183
|
columnInfo: "Kolominformatie",
|
|
166
184
|
hideColumn: "Kolom verbergen",
|
|
167
185
|
deleteColumn: "Kolom verwijderen",
|
|
168
|
-
ascending: "
|
|
169
|
-
descending: "
|
|
186
|
+
ascending: "Oplopend",
|
|
187
|
+
descending: "Aflopend",
|
|
170
188
|
allRowsSelected: "Alle rijen zijn geselecteerd",
|
|
171
189
|
clearSelection: "Duidelijke selectie",
|
|
172
190
|
freezeColumn: "Kolom vastzetten",
|
|
173
|
-
unFreezeColumn: "Kolom ontgrendelen"
|
|
191
|
+
unFreezeColumn: "Kolom ontgrendelen",
|
|
192
|
+
moveColumnLeft: "Verplaats kolom naar links",
|
|
193
|
+
moveColumnRight: "Verplaats kolom naar rechts",
|
|
194
|
+
addColumnInfo: "Voeg kolominformatie toe",
|
|
195
|
+
editColumnInfo: "Bewerk kolominformatie",
|
|
196
|
+
info: "Tabel informatie"
|
|
174
197
|
},
|
|
175
198
|
timePicker: {
|
|
176
199
|
hours: "Uur",
|
|
@@ -181,7 +204,8 @@ var neetoui$2 = {
|
|
|
181
204
|
noOptions: "Geen opties."
|
|
182
205
|
},
|
|
183
206
|
common: {
|
|
184
|
-
timezone: "Tijdszone"
|
|
207
|
+
timezone: "Tijdszone",
|
|
208
|
+
description: "Beschrijving"
|
|
185
209
|
}
|
|
186
210
|
};
|
|
187
211
|
var nlTranslations = {
|
|
@@ -211,12 +235,17 @@ var neetoui$1 = {
|
|
|
211
235
|
columnInfo: "Informacje o kolumnie",
|
|
212
236
|
hideColumn: "Ukryj kolumnę",
|
|
213
237
|
deleteColumn: "Usuń kolumnę",
|
|
214
|
-
ascending: "
|
|
215
|
-
descending: "
|
|
238
|
+
ascending: "Rosnąco",
|
|
239
|
+
descending: "Malejąco",
|
|
216
240
|
allRowsSelected: "Wszystkie wiersze są zaznaczone",
|
|
217
241
|
clearSelection: "Wyczyść wybór",
|
|
218
242
|
freezeColumn: "Zablokuj kolumnę",
|
|
219
|
-
unFreezeColumn: "Odblokuj kolumnę"
|
|
243
|
+
unFreezeColumn: "Odblokuj kolumnę",
|
|
244
|
+
moveColumnLeft: "Przenieś kolumnę w lewo",
|
|
245
|
+
moveColumnRight: "Przenieś kolumnę w prawo",
|
|
246
|
+
addColumnInfo: "Dodaj informacje o kolumnie",
|
|
247
|
+
editColumnInfo: "Edytuj informacje o kolumnie",
|
|
248
|
+
info: "Informacje o tabeli"
|
|
220
249
|
},
|
|
221
250
|
timePicker: {
|
|
222
251
|
hours: "godziny",
|
|
@@ -227,7 +256,8 @@ var neetoui$1 = {
|
|
|
227
256
|
noOptions: "Brak opcji."
|
|
228
257
|
},
|
|
229
258
|
common: {
|
|
230
|
-
timezone: "Strefa czasowa"
|
|
259
|
+
timezone: "Strefa czasowa",
|
|
260
|
+
description: "Opis"
|
|
231
261
|
}
|
|
232
262
|
};
|
|
233
263
|
var plTranslations = {
|
|
@@ -257,12 +287,17 @@ var neetoui = {
|
|
|
257
287
|
columnInfo: "Informações da coluna",
|
|
258
288
|
hideColumn: "Ocultar coluna",
|
|
259
289
|
deleteColumn: "Excluir coluna",
|
|
260
|
-
ascending: "
|
|
261
|
-
descending: "
|
|
290
|
+
ascending: "Ascendente",
|
|
291
|
+
descending: "Descendente",
|
|
262
292
|
allRowsSelected: "Todas as linhas estão selecionadas",
|
|
263
293
|
clearSelection: "Limpar seleção",
|
|
264
294
|
freezeColumn: "Congelar coluna",
|
|
265
|
-
unFreezeColumn: "Descongelar coluna"
|
|
295
|
+
unFreezeColumn: "Descongelar coluna",
|
|
296
|
+
moveColumnLeft: "Mover coluna para a esquerda",
|
|
297
|
+
moveColumnRight: "Mover coluna para a direita",
|
|
298
|
+
addColumnInfo: "Adicionar informações da coluna",
|
|
299
|
+
editColumnInfo: "Editar informações da coluna",
|
|
300
|
+
info: "Informações da tabela"
|
|
266
301
|
},
|
|
267
302
|
timePicker: {
|
|
268
303
|
hours: "Horas",
|
|
@@ -273,7 +308,8 @@ var neetoui = {
|
|
|
273
308
|
noOptions: "Sem opções."
|
|
274
309
|
},
|
|
275
310
|
common: {
|
|
276
|
-
timezone: "Fuso horário"
|
|
311
|
+
timezone: "Fuso horário",
|
|
312
|
+
description: "Descrição"
|
|
277
313
|
}
|
|
278
314
|
};
|
|
279
315
|
var ptTranslations = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationProvider.js","sources":["../src/translations/index.js","../src/components/TranslationProvider/i18n.js","../src/components/TranslationProvider/index.jsx"],"sourcesContent":["/* eslint-disable import/extensions */\nimport deTranslations from \"./de.json\";\nimport enTranslations from \"./en.json\";\nimport esTranslations from \"./es.json\";\nimport frTranslations from \"./fr.json\";\nimport nlTranslations from \"./nl.json\";\nimport plTranslations from \"./pl.json\";\nimport ptTranslations from \"./pt.json\";\n\nexport const resources = {\n en: { translation: enTranslations },\n es: { translation: esTranslations },\n fr: { translation: frTranslations },\n de: { translation: deTranslations },\n nl: { translation: nlTranslations },\n pl: { translation: plTranslations },\n pt: { translation: ptTranslations },\n};\n","/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\n/* eslint-disable import/extensions */\n\nimport i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\n\nimport { resources } from \"src/translations\";\n\nexport const initializeI18n = (language = \"en\") => {\n i18n.use(initReactI18next).init({\n resources,\n lang: language,\n fallbackLng: \"en\",\n interpolation: { escapeValue: false },\n });\n\n return i18n;\n};\n","import React, { useEffect } from \"react\";\n\nimport { I18nextProvider } from \"react-i18next\";\n\nimport { initializeI18n } from \"./i18n\";\n\nconst TranslationProvider = ({ children, language }) => {\n const i18n = initializeI18n(language);\n\n useEffect(() => {\n if (!language || i18n.language === language) return;\n\n i18n.changeLanguage(language);\n }, [language]);\n\n return <I18nextProvider {...{ i18n }}>{children}</I18nextProvider>;\n};\n\nexport default TranslationProvider;\n"],"names":["resources","en","translation","enTranslations","es","esTranslations","fr","frTranslations","de","deTranslations","nl","nlTranslations","pl","plTranslations","pt","ptTranslations","initializeI18n","language","arguments","length","undefined","i18n","use","initReactI18next","init","lang","fallbackLng","interpolation","escapeValue","TranslationProvider","_ref","children","useEffect","changeLanguage","_jsx","I18nextProvider"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TranslationProvider.js","sources":["../src/translations/index.js","../src/components/TranslationProvider/i18n.js","../src/components/TranslationProvider/index.jsx"],"sourcesContent":["/* eslint-disable import/extensions */\nimport deTranslations from \"./de.json\";\nimport enTranslations from \"./en.json\";\nimport esTranslations from \"./es.json\";\nimport frTranslations from \"./fr.json\";\nimport nlTranslations from \"./nl.json\";\nimport plTranslations from \"./pl.json\";\nimport ptTranslations from \"./pt.json\";\n\nexport const resources = {\n en: { translation: enTranslations },\n es: { translation: esTranslations },\n fr: { translation: frTranslations },\n de: { translation: deTranslations },\n nl: { translation: nlTranslations },\n pl: { translation: plTranslations },\n pt: { translation: ptTranslations },\n};\n","/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\n/* eslint-disable import/extensions */\n\nimport i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\n\nimport { resources } from \"src/translations\";\n\nexport const initializeI18n = (language = \"en\") => {\n i18n.use(initReactI18next).init({\n resources,\n lang: language,\n fallbackLng: \"en\",\n interpolation: { escapeValue: false },\n });\n\n return i18n;\n};\n","import React, { useEffect } from \"react\";\n\nimport { I18nextProvider } from \"react-i18next\";\n\nimport { initializeI18n } from \"./i18n\";\n\nconst TranslationProvider = ({ children, language }) => {\n const i18n = initializeI18n(language);\n\n useEffect(() => {\n if (!language || i18n.language === language) return;\n\n i18n.changeLanguage(language);\n }, [language]);\n\n return <I18nextProvider {...{ i18n }}>{children}</I18nextProvider>;\n};\n\nexport default TranslationProvider;\n"],"names":["resources","en","translation","enTranslations","es","esTranslations","fr","frTranslations","de","deTranslations","nl","nlTranslations","pl","plTranslations","pt","ptTranslations","initializeI18n","language","arguments","length","undefined","i18n","use","initReactI18next","init","lang","fallbackLng","interpolation","escapeValue","TranslationProvider","_ref","children","useEffect","changeLanguage","_jsx","I18nextProvider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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