@redsift/table 11.5.0-muiv5 → 11.6.0-muiv5-alpha.0
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/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/_commonjsHelpers.js.map +1 -0
- package/_virtual/_rollupPluginBabelHelpers.js +93 -0
- package/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index.js.map +1 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index2.js.map +1 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/index3.js.map +1 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/jsx-runtime.js.map +1 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development.js.map +1 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.development2.js.map +1 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min.js.map +1 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-is.production.min2.js.map +1 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/_virtual/react-jsx-runtime.production.min.js +4 -0
- package/_virtual/react-jsx-runtime.production.min.js.map +1 -0
- package/components/BaseComponents/BaseButton.d.ts +5 -0
- package/components/BaseComponents/BaseButton.js +41 -0
- package/components/BaseComponents/BaseButton.js.map +1 -0
- package/components/BaseComponents/BaseCheckbox.d.ts +5 -0
- package/components/BaseComponents/BaseCheckbox.js +24 -0
- package/components/BaseComponents/BaseCheckbox.js.map +1 -0
- package/components/BaseComponents/BaseIcon.d.ts +7 -0
- package/components/BaseComponents/BaseIcon.js +33 -0
- package/components/BaseComponents/BaseIcon.js.map +1 -0
- package/components/BaseComponents/BasePopper.d.ts +5 -0
- package/components/BaseComponents/BasePopper.js +13 -0
- package/components/BaseComponents/BasePopper.js.map +1 -0
- package/components/BaseComponents/BaseTextField.d.ts +5 -0
- package/components/BaseComponents/BaseTextField.js +26 -0
- package/components/BaseComponents/BaseTextField.js.map +1 -0
- package/components/DataGrid/DataGrid.d.ts +6 -0
- package/components/DataGrid/DataGrid.js +340 -0
- package/components/DataGrid/DataGrid.js.map +1 -0
- package/components/DataGrid/styles.js +74 -0
- package/components/DataGrid/styles.js.map +1 -0
- package/components/DataGrid/types.d.ts +36 -0
- package/components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.d.ts +15 -0
- package/components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.js +183 -0
- package/components/GridToolbarFilterSemanticField/GridToolbarFilterSemanticField.js.map +1 -0
- package/components/GridToolbarFilterSemanticField/styles.js +20 -0
- package/components/GridToolbarFilterSemanticField/styles.js.map +1 -0
- package/components/GridToolbarFilterSemanticField/types.d.ts +39 -0
- package/components/Pagination/ControlledPagination.d.ts +21 -0
- package/components/Pagination/ControlledPagination.js +74 -0
- package/components/Pagination/ControlledPagination.js.map +1 -0
- package/components/Pagination/ServerSideControlledPagination.d.ts +23 -0
- package/components/Pagination/ServerSideControlledPagination.js +102 -0
- package/components/Pagination/ServerSideControlledPagination.js.map +1 -0
- package/components/StatefulDataGrid/StatefulDataGrid.d.ts +6 -0
- package/components/StatefulDataGrid/StatefulDataGrid.js +373 -0
- package/components/StatefulDataGrid/StatefulDataGrid.js.map +1 -0
- package/components/StatefulDataGrid/types.d.ts +16 -0
- package/components/TextCell/TextCell.d.ts +9 -0
- package/components/TextCell/TextCell.js +48 -0
- package/components/TextCell/TextCell.js.map +1 -0
- package/components/TextCell/styles.js +22 -0
- package/components/TextCell/styles.js.map +1 -0
- package/components/TextCell/types.d.ts +25 -0
- package/components/Toolbar/Toolbar.d.ts +20 -0
- package/components/Toolbar/Toolbar.js +72 -0
- package/components/Toolbar/Toolbar.js.map +1 -0
- package/components/Toolbar/styles.js +17 -0
- package/components/Toolbar/styles.js.map +1 -0
- package/components/Toolbar/types.d.ts +40 -0
- package/components/ToolbarWrapper/ToolbarWrapper.d.ts +25 -0
- package/components/ToolbarWrapper/ToolbarWrapper.js +60 -0
- package/components/ToolbarWrapper/ToolbarWrapper.js.map +1 -0
- package/hooks/useControlledDatagridState.js +109 -0
- package/hooks/useControlledDatagridState.js.map +1 -0
- package/hooks/useFetchState.js +34 -0
- package/hooks/useFetchState.js.map +1 -0
- package/hooks/useStatefulTable.d.ts +12 -0
- package/hooks/useStatefulTable.js +182 -0
- package/hooks/useStatefulTable.js.map +1 -0
- package/hooks/useTableStates.js +52 -0
- package/hooks/useTableStates.js.map +1 -0
- package/index.d.ts +39 -628
- package/index.js +36 -28375
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/packages/design-system/src/components/theme/context.js +7 -0
- package/packages/design-system/src/components/theme/context.js.map +1 -0
- package/packages/popovers/src/components/tooltip/Tooltip.js +60 -0
- package/packages/popovers/src/components/tooltip/Tooltip.js.map +1 -0
- package/packages/popovers/src/components/tooltip/context.js +6 -0
- package/packages/popovers/src/components/tooltip/context.js.map +1 -0
- package/packages/popovers/src/components/tooltip/types.js +28 -0
- package/packages/popovers/src/components/tooltip/types.js.map +1 -0
- package/packages/popovers/src/components/tooltip/useTooltip.js +78 -0
- package/packages/popovers/src/components/tooltip/useTooltip.js.map +1 -0
- package/packages/popovers/src/components/tooltip/useTooltipContext.js +13 -0
- package/packages/popovers/src/components/tooltip/useTooltipContext.js.map +1 -0
- package/packages/popovers/src/components/tooltip-content/TooltipContent.js +79 -0
- package/packages/popovers/src/components/tooltip-content/TooltipContent.js.map +1 -0
- package/packages/popovers/src/components/tooltip-content/styles.js +127 -0
- package/packages/popovers/src/components/tooltip-content/styles.js.map +1 -0
- package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js +47 -0
- package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js.map +1 -0
- package/utils/columnTypes/index.d.ts +78 -0
- package/utils/columnTypes/index.js +49 -0
- package/utils/columnTypes/index.js.map +1 -0
- package/utils/columns/detailPanelToggleColDef.d.ts +5 -0
- package/utils/columns/detailPanelToggleColDef.js +8 -0
- package/utils/columns/detailPanelToggleColDef.js.map +1 -0
- package/utils/fields/InputNumberInterval.js +85 -0
- package/utils/fields/InputNumberInterval.js.map +1 -0
- package/utils/gpt.d.ts +3 -0
- package/utils/gpt.js +33 -0
- package/utils/gpt.js.map +1 -0
- package/utils/localStorage.d.ts +17 -0
- package/utils/localStorage.js +59 -0
- package/utils/localStorage.js.map +1 -0
- package/utils/operators/index.d.ts +68 -0
- package/utils/operators/index.js +52 -0
- package/utils/operators/index.js.map +1 -0
- package/utils/operators/numeric/getGridNumericOperators.d.ts +5 -0
- package/utils/operators/numeric/getGridNumericOperators.js +7 -0
- package/utils/operators/numeric/getGridNumericOperators.js.map +1 -0
- package/utils/operators/numeric/isBetween.d.ts +10 -0
- package/utils/operators/numeric/isBetween.js +28 -0
- package/utils/operators/numeric/isBetween.js.map +1 -0
- package/utils/operators/string/doesNotContain.d.ts +10 -0
- package/utils/operators/string/doesNotContain.js +25 -0
- package/utils/operators/string/doesNotContain.js.map +1 -0
- package/utils/operators/string/doesNotEqual.d.ts +10 -0
- package/utils/operators/string/doesNotEqual.js +25 -0
- package/utils/operators/string/doesNotEqual.js.map +1 -0
- package/utils/operators/string/doesNotHave.d.ts +16 -0
- package/utils/operators/string/doesNotHave.js +24 -0
- package/utils/operators/string/doesNotHave.js.map +1 -0
- package/utils/operators/string/getGridStringOperators.d.ts +5 -0
- package/utils/operators/string/getGridStringOperators.js +9 -0
- package/utils/operators/string/getGridStringOperators.js.map +1 -0
- package/utils/operators/string/has.d.ts +16 -0
- package/utils/operators/string/has.js +24 -0
- package/utils/operators/string/has.js.map +1 -0
- package/utils/operators/string/hasOnly.d.ts +16 -0
- package/utils/operators/string/hasOnly.js +24 -0
- package/utils/operators/string/hasOnly.js.map +1 -0
- package/utils/operators/string/is.d.ts +16 -0
- package/utils/operators/string/is.js +26 -0
- package/utils/operators/string/is.js.map +1 -0
- package/utils/operators/string/isNot.d.ts +16 -0
- package/utils/operators/string/isNot.js +26 -0
- package/utils/operators/string/isNot.js.map +1 -0
- package/utils/operators/string-array/containsAnyOf.d.ts +16 -0
- package/utils/operators/string-array/containsAnyOf.js +56 -0
- package/utils/operators/string-array/containsAnyOf.js.map +1 -0
- package/utils/operators/string-array/doesNotHaveAnyOf.js +26 -0
- package/utils/operators/string-array/doesNotHaveAnyOf.js.map +1 -0
- package/utils/operators/string-array/endsWithAnyOf.d.ts +10 -0
- package/utils/operators/string-array/endsWithAnyOf.js +31 -0
- package/utils/operators/string-array/endsWithAnyOf.js.map +1 -0
- package/utils/operators/string-array/getGridStringArrayOperators.d.ts +7 -0
- package/utils/operators/string-array/getGridStringArrayOperators.js +19 -0
- package/utils/operators/string-array/getGridStringArrayOperators.js.map +1 -0
- package/utils/operators/string-array/hasAnyOf.d.ts +16 -0
- package/utils/operators/string-array/hasAnyOf.js +28 -0
- package/utils/operators/string-array/hasAnyOf.js.map +1 -0
- package/utils/operators/string-array/isAnyOf.d.ts +16 -0
- package/utils/operators/string-array/isAnyOf.js +32 -0
- package/utils/operators/string-array/isAnyOf.js.map +1 -0
- package/utils/operators/string-array/isNotAnyOf.d.ts +10 -0
- package/utils/operators/string-array/isNotAnyOf.js +28 -0
- package/utils/operators/string-array/isNotAnyOf.js.map +1 -0
- package/utils/operators/string-array/startsWithAnyOf.d.ts +10 -0
- package/utils/operators/string-array/startsWithAnyOf.js +31 -0
- package/utils/operators/string-array/startsWithAnyOf.js.map +1 -0
- package/utils/urlLocalStorageSync.d.ts +73 -0
- package/utils/urlLocalStorageSync.js +756 -0
- package/utils/urlLocalStorageSync.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
function ownKeys(object, enumerableOnly) {
|
|
2
|
+
var keys = Object.keys(object);
|
|
3
|
+
if (Object.getOwnPropertySymbols) {
|
|
4
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
6
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
7
|
+
})), keys.push.apply(keys, symbols);
|
|
8
|
+
}
|
|
9
|
+
return keys;
|
|
10
|
+
}
|
|
11
|
+
function _objectSpread2(target) {
|
|
12
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
13
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
14
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
15
|
+
_defineProperty(target, key, source[key]);
|
|
16
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
17
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
}
|
|
22
|
+
function _defineProperty(obj, key, value) {
|
|
23
|
+
key = _toPropertyKey(key);
|
|
24
|
+
if (key in obj) {
|
|
25
|
+
Object.defineProperty(obj, key, {
|
|
26
|
+
value: value,
|
|
27
|
+
enumerable: true,
|
|
28
|
+
configurable: true,
|
|
29
|
+
writable: true
|
|
30
|
+
});
|
|
31
|
+
} else {
|
|
32
|
+
obj[key] = value;
|
|
33
|
+
}
|
|
34
|
+
return obj;
|
|
35
|
+
}
|
|
36
|
+
function _extends() {
|
|
37
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
38
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
39
|
+
var source = arguments[i];
|
|
40
|
+
for (var key in source) {
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
42
|
+
target[key] = source[key];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return target;
|
|
47
|
+
};
|
|
48
|
+
return _extends.apply(this, arguments);
|
|
49
|
+
}
|
|
50
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
51
|
+
if (source == null) return {};
|
|
52
|
+
var target = {};
|
|
53
|
+
var sourceKeys = Object.keys(source);
|
|
54
|
+
var key, i;
|
|
55
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
56
|
+
key = sourceKeys[i];
|
|
57
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
58
|
+
target[key] = source[key];
|
|
59
|
+
}
|
|
60
|
+
return target;
|
|
61
|
+
}
|
|
62
|
+
function _objectWithoutProperties(source, excluded) {
|
|
63
|
+
if (source == null) return {};
|
|
64
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
65
|
+
var key, i;
|
|
66
|
+
if (Object.getOwnPropertySymbols) {
|
|
67
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
68
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
69
|
+
key = sourceSymbolKeys[i];
|
|
70
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
71
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
72
|
+
target[key] = source[key];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return target;
|
|
76
|
+
}
|
|
77
|
+
function _toPrimitive(input, hint) {
|
|
78
|
+
if (typeof input !== "object" || input === null) return input;
|
|
79
|
+
var prim = input[Symbol.toPrimitive];
|
|
80
|
+
if (prim !== undefined) {
|
|
81
|
+
var res = prim.call(input, hint || "default");
|
|
82
|
+
if (typeof res !== "object") return res;
|
|
83
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
84
|
+
}
|
|
85
|
+
return (hint === "string" ? String : Number)(input);
|
|
86
|
+
}
|
|
87
|
+
function _toPropertyKey(arg) {
|
|
88
|
+
var key = _toPrimitive(arg, "string");
|
|
89
|
+
return typeof key === "symbol" ? key : String(key);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { _defineProperty as defineProperty, _extends as extends, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey };
|
|
93
|
+
//# sourceMappingURL=_rollupPluginBabelHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-is.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-is.development2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-is.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-is.production.min2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-jsx-runtime.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-jsx-runtime.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React__default, { forwardRef } from 'react';
|
|
3
|
+
import { ButtonsColorPalette, IconButton, Button } from '@redsift/design-system';
|
|
4
|
+
|
|
5
|
+
const _excluded = ["children", "color", "onClick", "startIcon"];
|
|
6
|
+
const BaseButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7
|
+
var _props$className;
|
|
8
|
+
const {
|
|
9
|
+
children,
|
|
10
|
+
color: propsColor,
|
|
11
|
+
onClick,
|
|
12
|
+
startIcon
|
|
13
|
+
} = props,
|
|
14
|
+
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
15
|
+
const color = Object.keys(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
|
|
16
|
+
if ((_props$className = props.className) !== null && _props$className !== void 0 && _props$className.includes('redsift-condensed')) {
|
|
17
|
+
return /*#__PURE__*/React__default.createElement(IconButton, _extends({}, forwardedProps, {
|
|
18
|
+
color: color,
|
|
19
|
+
onClick: onClick,
|
|
20
|
+
ref: ref,
|
|
21
|
+
variant: "unstyled",
|
|
22
|
+
isActive: props['aria-expanded'] === 'true',
|
|
23
|
+
icon: typeof startIcon !== 'string' ? /*#__PURE__*/React__default.cloneElement(startIcon, {
|
|
24
|
+
fontSize: 'medium'
|
|
25
|
+
}) : startIcon,
|
|
26
|
+
"aria-label": children,
|
|
27
|
+
size: "medium"
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends({}, forwardedProps, {
|
|
31
|
+
color: color,
|
|
32
|
+
onClick: onClick,
|
|
33
|
+
ref: ref,
|
|
34
|
+
variant: "unstyled",
|
|
35
|
+
isActive: props['aria-expanded'] === 'true',
|
|
36
|
+
leftIcon: startIcon
|
|
37
|
+
}), children);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export { BaseButton };
|
|
41
|
+
//# sourceMappingURL=BaseButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseButton.js","sources":["../../../src/components/BaseComponents/BaseButton.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Button, ButtonsColorPalette, IconButton } from '@redsift/design-system';\n\nexport const BaseButton: React.JSXElementConstructor<any> = forwardRef((props, ref) => {\n const { children, color: propsColor, onClick, startIcon, ...forwardedProps } = props;\n\n const color = Object.keys(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';\n\n if (props.className?.includes('redsift-condensed')) {\n return (\n <IconButton\n {...forwardedProps}\n color={color}\n onClick={onClick}\n ref={ref}\n variant=\"unstyled\"\n isActive={props['aria-expanded'] === 'true'}\n icon={typeof startIcon !== 'string' ? React.cloneElement(startIcon, { fontSize: 'medium' }) : startIcon}\n aria-label={children}\n size=\"medium\"\n />\n );\n }\n\n return (\n <Button\n {...forwardedProps}\n color={color}\n onClick={onClick}\n ref={ref}\n variant=\"unstyled\"\n isActive={props['aria-expanded'] === 'true'}\n leftIcon={startIcon}\n >\n {children}\n </Button>\n );\n});\n"],"names":["BaseButton","forwardRef","props","ref","_props$className","children","color","propsColor","onClick","startIcon","forwardedProps","_objectWithoutProperties","_excluded","Object","keys","ButtonsColorPalette","includes","className","React","createElement","IconButton","_extends","variant","isActive","icon","cloneElement","fontSize","size","Button","leftIcon"],"mappings":";;;;;AAGO,MAAMA,UAA4C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;AAAA,EAAA,IAAAC,gBAAA,CAAA;EACrF,MAAM;MAAEC,QAAQ;AAAEC,MAAAA,KAAK,EAAEC,UAAU;MAAEC,OAAO;AAAEC,MAAAA,SAAAA;AAA6B,KAAC,GAAGP,KAAK;AAAxBQ,IAAAA,cAAc,GAAAC,wBAAA,CAAKT,KAAK,EAAAU,SAAA,CAAA,CAAA;AAEpF,EAAA,MAAMN,KAAK,GAAGO,MAAM,CAACC,IAAI,CAACC,mBAAmB,CAAC,CAACC,QAAQ,CAACT,UAAU,CAAC,GAAGA,UAAU,GAAG,SAAS,CAAA;AAE5F,EAAA,IAAA,CAAAH,gBAAA,GAAIF,KAAK,CAACe,SAAS,MAAAb,IAAAA,IAAAA,gBAAA,KAAfA,KAAAA,CAAAA,IAAAA,gBAAA,CAAiBY,QAAQ,CAAC,mBAAmB,CAAC,EAAE;IAClD,oBACEE,cAAA,CAAAC,aAAA,CAACC,UAAU,EAAAC,QAAA,KACLX,cAAc,EAAA;AAClBJ,MAAAA,KAAK,EAAEA,KAAM;AACbE,MAAAA,OAAO,EAAEA,OAAQ;AACjBL,MAAAA,GAAG,EAAEA,GAAI;AACTmB,MAAAA,OAAO,EAAC,UAAU;AAClBC,MAAAA,QAAQ,EAAErB,KAAK,CAAC,eAAe,CAAC,KAAK,MAAO;MAC5CsB,IAAI,EAAE,OAAOf,SAAS,KAAK,QAAQ,gBAAGS,cAAK,CAACO,YAAY,CAAChB,SAAS,EAAE;AAAEiB,QAAAA,QAAQ,EAAE,QAAA;OAAU,CAAC,GAAGjB,SAAU;AACxG,MAAA,YAAA,EAAYJ,QAAS;AACrBsB,MAAAA,IAAI,EAAC,QAAA;AAAQ,KAAA,CACd,CAAC,CAAA;AAEN,GAAA;EAEA,oBACET,cAAA,CAAAC,aAAA,CAACS,MAAM,EAAAP,QAAA,KACDX,cAAc,EAAA;AAClBJ,IAAAA,KAAK,EAAEA,KAAM;AACbE,IAAAA,OAAO,EAAEA,OAAQ;AACjBL,IAAAA,GAAG,EAAEA,GAAI;AACTmB,IAAAA,OAAO,EAAC,UAAU;AAClBC,IAAAA,QAAQ,EAAErB,KAAK,CAAC,eAAe,CAAC,KAAK,MAAO;AAC5C2B,IAAAA,QAAQ,EAAEpB,SAAAA;AAAU,GAAA,CAAA,EAEnBJ,QACK,CAAC,CAAA;AAEb,CAAC;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React__default, { forwardRef } from 'react';
|
|
3
|
+
import { Checkbox } from '@redsift/design-system';
|
|
4
|
+
|
|
5
|
+
const _excluded = ["checked", "indeterminate", "disabled", "onChange"];
|
|
6
|
+
const BaseCheckbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7
|
+
const {
|
|
8
|
+
checked,
|
|
9
|
+
indeterminate,
|
|
10
|
+
disabled,
|
|
11
|
+
onChange
|
|
12
|
+
} = props,
|
|
13
|
+
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
14
|
+
return /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, forwardedProps, forwardedProps.inputProps, {
|
|
15
|
+
isSelected: checked && !indeterminate,
|
|
16
|
+
isDisabled: disabled,
|
|
17
|
+
isIndeterminate: indeterminate,
|
|
18
|
+
ref: ref,
|
|
19
|
+
onChange: (isChecked, value, name, event) => onChange(event)
|
|
20
|
+
}));
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export { BaseCheckbox };
|
|
24
|
+
//# sourceMappingURL=BaseCheckbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseCheckbox.js","sources":["../../../src/components/BaseComponents/BaseCheckbox.tsx"],"sourcesContent":["import React, { forwardRef, MutableRefObject } from 'react';\nimport { Checkbox } from '@redsift/design-system';\n\nexport const BaseCheckbox: React.JSXElementConstructor<any> = forwardRef((props, ref) => {\n const { checked, indeterminate, disabled, onChange, ...forwardedProps } = props;\n\n return (\n <Checkbox\n {...forwardedProps}\n {...forwardedProps.inputProps}\n isSelected={checked && !indeterminate}\n isDisabled={disabled}\n isIndeterminate={indeterminate}\n ref={ref as MutableRefObject<HTMLLabelElement>}\n onChange={(isChecked, value, name, event) => onChange(event)}\n />\n );\n});\n"],"names":["BaseCheckbox","forwardRef","props","ref","checked","indeterminate","disabled","onChange","forwardedProps","_objectWithoutProperties","_excluded","React","createElement","Checkbox","_extends","inputProps","isSelected","isDisabled","isIndeterminate","isChecked","value","name","event"],"mappings":";;;;;AAGO,MAAMA,YAA8C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACvF,MAAM;MAAEC,OAAO;MAAEC,aAAa;MAAEC,QAAQ;AAAEC,MAAAA,QAAAA;AAA4B,KAAC,GAAGL,KAAK;AAAxBM,IAAAA,cAAc,GAAAC,wBAAA,CAAKP,KAAK,EAAAQ,SAAA,CAAA,CAAA;AAE/E,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAACC,QAAQ,EAAAC,QAAA,CAAA,EAAA,EACHN,cAAc,EACdA,cAAc,CAACO,UAAU,EAAA;AAC7BC,IAAAA,UAAU,EAAEZ,OAAO,IAAI,CAACC,aAAc;AACtCY,IAAAA,UAAU,EAAEX,QAAS;AACrBY,IAAAA,eAAe,EAAEb,aAAc;AAC/BF,IAAAA,GAAG,EAAEA,GAA0C;AAC/CI,IAAAA,QAAQ,EAAEA,CAACY,SAAS,EAAEC,KAAK,EAAEC,IAAI,EAAEC,KAAK,KAAKf,QAAQ,CAACe,KAAK,CAAA;AAAE,GAAA,CAC9D,CAAC,CAAA;AAEN,CAAC;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridSlotsComponent } from '@mui/x-data-grid-pro';
|
|
3
|
+
|
|
4
|
+
declare const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>>;
|
|
5
|
+
declare const BaseIcon: React.JSXElementConstructor<any>;
|
|
6
|
+
|
|
7
|
+
export { BaseIcon, muiIconToDSIcon };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React__default, { forwardRef } from 'react';
|
|
3
|
+
import { Icon } from '@redsift/design-system';
|
|
4
|
+
import { mdiFilterVariant, mdiViewColumn, mdiChevronUp, mdiChevronDown, mdiViewHeadline, mdiViewSequential, mdiViewStream, mdiChevronRight, mdiTrayArrowDown } from '@redsift/icons';
|
|
5
|
+
|
|
6
|
+
const _excluded = ["displayName"];
|
|
7
|
+
const muiIconToDSIcon = {
|
|
8
|
+
ColumnFilteredIcon: mdiFilterVariant,
|
|
9
|
+
ColumnSelectorIcon: mdiViewColumn,
|
|
10
|
+
ColumnSortedAscendingIcon: mdiChevronUp,
|
|
11
|
+
ColumnSortedDescendingIcon: mdiChevronDown,
|
|
12
|
+
DensityCompactIcon: mdiViewHeadline,
|
|
13
|
+
DensityStandardIcon: mdiViewSequential,
|
|
14
|
+
DensityComfortableIcon: mdiViewStream,
|
|
15
|
+
DetailPanelCollapseIcon: mdiChevronDown,
|
|
16
|
+
DetailPanelExpandIcon: mdiChevronRight,
|
|
17
|
+
ExportIcon: mdiTrayArrowDown,
|
|
18
|
+
OpenFilterButtonIcon: mdiFilterVariant
|
|
19
|
+
};
|
|
20
|
+
const BaseIcon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
21
|
+
const {
|
|
22
|
+
displayName
|
|
23
|
+
} = props,
|
|
24
|
+
forwardedProps = _objectWithoutProperties(props, _excluded);
|
|
25
|
+
return /*#__PURE__*/React__default.createElement(Icon, _extends({}, forwardedProps, forwardedProps.inputProps, {
|
|
26
|
+
ref: ref,
|
|
27
|
+
size: forwardedProps.fontSize,
|
|
28
|
+
icon: muiIconToDSIcon[displayName]
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export { BaseIcon, muiIconToDSIcon };
|
|
33
|
+
//# sourceMappingURL=BaseIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseIcon.js","sources":["../../../src/components/BaseComponents/BaseIcon.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Icon } from '@redsift/design-system';\nimport {\n mdiChevronDown,\n mdiChevronRight,\n mdiChevronUp,\n mdiFilterVariant,\n mdiTrayArrowDown,\n mdiViewColumn,\n mdiViewHeadline,\n mdiViewSequential,\n mdiViewStream,\n} from '@redsift/icons';\nimport { GridSlotsComponent } from '@mui/x-data-grid-pro';\n\nexport const muiIconToDSIcon: Partial<Record<keyof GridSlotsComponent, string>> = {\n ColumnFilteredIcon: mdiFilterVariant,\n ColumnSelectorIcon: mdiViewColumn,\n ColumnSortedAscendingIcon: mdiChevronUp,\n ColumnSortedDescendingIcon: mdiChevronDown,\n DensityCompactIcon: mdiViewHeadline,\n DensityStandardIcon: mdiViewSequential,\n DensityComfortableIcon: mdiViewStream,\n DetailPanelCollapseIcon: mdiChevronDown,\n DetailPanelExpandIcon: mdiChevronRight,\n ExportIcon: mdiTrayArrowDown,\n OpenFilterButtonIcon: mdiFilterVariant,\n};\n\nexport const BaseIcon: React.JSXElementConstructor<any> = forwardRef((props, ref) => {\n const { displayName, ...forwardedProps } = props;\n\n return (\n <Icon\n {...forwardedProps}\n {...forwardedProps.inputProps}\n ref={ref}\n size={forwardedProps.fontSize}\n icon={muiIconToDSIcon[displayName as keyof GridSlotsComponent]}\n />\n );\n});\n"],"names":["muiIconToDSIcon","ColumnFilteredIcon","mdiFilterVariant","ColumnSelectorIcon","mdiViewColumn","ColumnSortedAscendingIcon","mdiChevronUp","ColumnSortedDescendingIcon","mdiChevronDown","DensityCompactIcon","mdiViewHeadline","DensityStandardIcon","mdiViewSequential","DensityComfortableIcon","mdiViewStream","DetailPanelCollapseIcon","DetailPanelExpandIcon","mdiChevronRight","ExportIcon","mdiTrayArrowDown","OpenFilterButtonIcon","BaseIcon","forwardRef","props","ref","displayName","forwardedProps","_objectWithoutProperties","_excluded","React","createElement","Icon","_extends","inputProps","size","fontSize","icon"],"mappings":";;;;;;AAeO,MAAMA,eAAkE,GAAG;AAChFC,EAAAA,kBAAkB,EAAEC,gBAAgB;AACpCC,EAAAA,kBAAkB,EAAEC,aAAa;AACjCC,EAAAA,yBAAyB,EAAEC,YAAY;AACvCC,EAAAA,0BAA0B,EAAEC,cAAc;AAC1CC,EAAAA,kBAAkB,EAAEC,eAAe;AACnCC,EAAAA,mBAAmB,EAAEC,iBAAiB;AACtCC,EAAAA,sBAAsB,EAAEC,aAAa;AACrCC,EAAAA,uBAAuB,EAAEP,cAAc;AACvCQ,EAAAA,qBAAqB,EAAEC,eAAe;AACtCC,EAAAA,UAAU,EAAEC,gBAAgB;AAC5BC,EAAAA,oBAAoB,EAAElB,gBAAAA;AACxB,EAAC;AAEM,MAAMmB,QAA0C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACnF,MAAM;AAAEC,MAAAA,WAAAA;AAA+B,KAAC,GAAGF,KAAK;AAAxBG,IAAAA,cAAc,GAAAC,wBAAA,CAAKJ,KAAK,EAAAK,SAAA,CAAA,CAAA;AAEhD,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAACC,IAAI,EAAAC,QAAA,CAAA,EAAA,EACCN,cAAc,EACdA,cAAc,CAACO,UAAU,EAAA;AAC7BT,IAAAA,GAAG,EAAEA,GAAI;IACTU,IAAI,EAAER,cAAc,CAACS,QAAS;IAC9BC,IAAI,EAAEpC,eAAe,CAACyB,WAAW,CAAA;AAA8B,GAAA,CAChE,CAAC,CAAA;AAEN,CAAC;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React__default, { forwardRef } from 'react';
|
|
3
|
+
import Popper from '../../node_modules/@mui/material/Popper/Popper.js';
|
|
4
|
+
|
|
5
|
+
const BasePopper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
6
|
+
return /*#__PURE__*/React__default.createElement(Popper, _extends({}, props, {
|
|
7
|
+
ref: ref,
|
|
8
|
+
container: () => document.getElementById('redsift-app-container')
|
|
9
|
+
}));
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export { BasePopper };
|
|
13
|
+
//# sourceMappingURL=BasePopper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasePopper.js","sources":["../../../src/components/BaseComponents/BasePopper.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport Popper from '@mui/material/Popper';\n\nexport const BasePopper: React.JSXElementConstructor<any> = forwardRef((props, ref) => {\n return <Popper {...props} ref={ref} container={() => document.getElementById('redsift-app-container')} />;\n});\n"],"names":["BasePopper","forwardRef","props","ref","React","createElement","Popper","_extends","container","document","getElementById"],"mappings":";;;;AAGO,MAAMA,UAA4C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACrF,oBAAOC,cAAA,CAAAC,aAAA,CAACC,MAAM,EAAAC,QAAA,KAAKL,KAAK,EAAA;AAAEC,IAAAA,GAAG,EAAEA,GAAI;AAACK,IAAAA,SAAS,EAAEA,MAAMC,QAAQ,CAACC,cAAc,CAAC,uBAAuB,CAAA;AAAE,GAAA,CAAE,CAAC,CAAA;AAC3G,CAAC;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React__default, { forwardRef } from 'react';
|
|
2
|
+
import { TextField } from '@redsift/design-system';
|
|
3
|
+
|
|
4
|
+
const BaseTextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
5
|
+
const {
|
|
6
|
+
label,
|
|
7
|
+
id,
|
|
8
|
+
value,
|
|
9
|
+
onChange,
|
|
10
|
+
placeholder
|
|
11
|
+
} = props;
|
|
12
|
+
return /*#__PURE__*/React__default.createElement(TextField, {
|
|
13
|
+
marginTop: "6px",
|
|
14
|
+
inputRef: ref,
|
|
15
|
+
label: label,
|
|
16
|
+
id: id,
|
|
17
|
+
value: value,
|
|
18
|
+
variant: "underline",
|
|
19
|
+
onChange: (value, name, event) => onChange(event),
|
|
20
|
+
autoFocus: true,
|
|
21
|
+
placeholder: placeholder
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { BaseTextField };
|
|
26
|
+
//# sourceMappingURL=BaseTextField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTextField.js","sources":["../../../src/components/BaseComponents/BaseTextField.tsx"],"sourcesContent":["import React, { forwardRef, MutableRefObject } from 'react';\nimport { TextField } from '@redsift/design-system';\n\nexport const BaseTextField: React.JSXElementConstructor<any> = forwardRef((props, ref) => {\n const { label, id, value, onChange, placeholder } = props;\n return (\n <TextField\n marginTop=\"6px\"\n inputRef={ref as MutableRefObject<HTMLInputElement>}\n label={label}\n id={id}\n value={value}\n variant=\"underline\"\n onChange={(value, name, event) => onChange(event)}\n autoFocus\n placeholder={placeholder}\n />\n );\n});\n"],"names":["BaseTextField","forwardRef","props","ref","label","id","value","onChange","placeholder","React","createElement","TextField","marginTop","inputRef","variant","name","event","autoFocus"],"mappings":";;;AAGO,MAAMA,aAA+C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACxF,MAAM;IAAEC,KAAK;IAAEC,EAAE;IAAEC,KAAK;IAAEC,QAAQ;AAAEC,IAAAA,WAAAA;AAAY,GAAC,GAAGN,KAAK,CAAA;AACzD,EAAA,oBACEO,cAAA,CAAAC,aAAA,CAACC,SAAS,EAAA;AACRC,IAAAA,SAAS,EAAC,KAAK;AACfC,IAAAA,QAAQ,EAAEV,GAA0C;AACpDC,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,EAAE,EAAEA,EAAG;AACPC,IAAAA,KAAK,EAAEA,KAAM;AACbQ,IAAAA,OAAO,EAAC,WAAW;IACnBP,QAAQ,EAAEA,CAACD,KAAK,EAAES,IAAI,EAAEC,KAAK,KAAKT,QAAQ,CAACS,KAAK,CAAE;IAClDC,SAAS,EAAA,IAAA;AACTT,IAAAA,WAAW,EAAEA,WAAAA;AAAY,GAC1B,CAAC,CAAA;AAEN,CAAC;;;;"}
|