@paubox/ui 0.14.5 → 0.15.1
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/index.esm.js +24 -5
- package/package.json +1 -1
- package/src/lib/Inputs/Select.d.ts +1 -1
package/index.esm.js
CHANGED
|
@@ -21931,8 +21931,19 @@ var Popper = function(param) {
|
|
|
21931
21931
|
if (anchorRef.current && containerRef.current) {
|
|
21932
21932
|
var anchorRect = anchorRef.current.getBoundingClientRect();
|
|
21933
21933
|
var popperRect = containerRef.current.getBoundingClientRect();
|
|
21934
|
-
var
|
|
21935
|
-
var
|
|
21934
|
+
var el = anchorRef.current;
|
|
21935
|
+
var isInsideFixedContainer = false;
|
|
21936
|
+
while(el && el !== document.body){
|
|
21937
|
+
var style = window.getComputedStyle(el);
|
|
21938
|
+
if (style.position === 'fixed') {
|
|
21939
|
+
isInsideFixedContainer = true;
|
|
21940
|
+
break;
|
|
21941
|
+
}
|
|
21942
|
+
if (!el.parentElement) break;
|
|
21943
|
+
el = el.parentElement;
|
|
21944
|
+
}
|
|
21945
|
+
var scrollX = isInsideFixedContainer ? 0 : window.scrollX || document.documentElement.scrollLeft;
|
|
21946
|
+
var scrollY = isInsideFixedContainer ? 0 : window.scrollY || document.documentElement.scrollTop;
|
|
21936
21947
|
var _calculatePosition = calculatePosition(anchorRect, popperRect, side, align, offset, detectEdges), top = _calculatePosition.top, left = _calculatePosition.left;
|
|
21937
21948
|
setPosition({
|
|
21938
21949
|
top: top + scrollY,
|
|
@@ -22316,6 +22327,9 @@ var FilterRow = function(param) {
|
|
|
22316
22327
|
/*#__PURE__*/ jsx(Select, {
|
|
22317
22328
|
name: "filters.".concat(filterKey, ".").concat(rowIndex, ".field"),
|
|
22318
22329
|
placeholder: "Field",
|
|
22330
|
+
style: {
|
|
22331
|
+
flex: 1
|
|
22332
|
+
},
|
|
22319
22333
|
value: currentFilter.field,
|
|
22320
22334
|
setValue: function(value) {
|
|
22321
22335
|
return onChange("filters.".concat(filterKey, ".").concat(rowIndex, ".field"), value);
|
|
@@ -22331,6 +22345,9 @@ var FilterRow = function(param) {
|
|
|
22331
22345
|
name: "filters.".concat(filterKey, ".").concat(rowIndex, ".op"),
|
|
22332
22346
|
placeholder: "Operator",
|
|
22333
22347
|
value: currentFilter.op,
|
|
22348
|
+
style: {
|
|
22349
|
+
flex: 1
|
|
22350
|
+
},
|
|
22334
22351
|
onChange: function(value) {
|
|
22335
22352
|
return onChange("filters.".concat(filterKey, ".").concat(rowIndex, ".op"), value);
|
|
22336
22353
|
},
|
|
@@ -24113,7 +24130,7 @@ var IconWrapper$1 = styled.div(_templateObject3$6(), function(param) {
|
|
|
24113
24130
|
});
|
|
24114
24131
|
var SelectOption = styled.option(_templateObject4$4(), $paragraph100Semibold, textSecondary);
|
|
24115
24132
|
var Select = function(_param) {
|
|
24116
|
-
var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var placeholder = _param.placeholder, value = _param.value, setValue = _param.setValue; _param.initialValue; var _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, props = _object_without_properties$a(_param, [
|
|
24133
|
+
var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var placeholder = _param.placeholder, value = _param.value, setValue = _param.setValue; _param.initialValue; var _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, style = _param.style, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, props = _object_without_properties$a(_param, [
|
|
24117
24134
|
"sz",
|
|
24118
24135
|
"error",
|
|
24119
24136
|
"options",
|
|
@@ -24123,6 +24140,7 @@ var Select = function(_param) {
|
|
|
24123
24140
|
"setValue",
|
|
24124
24141
|
"initialValue",
|
|
24125
24142
|
"type",
|
|
24143
|
+
"style",
|
|
24126
24144
|
"disabled"
|
|
24127
24145
|
]);
|
|
24128
24146
|
var _options_find;
|
|
@@ -24137,6 +24155,7 @@ var Select = function(_param) {
|
|
|
24137
24155
|
type: type,
|
|
24138
24156
|
error: error,
|
|
24139
24157
|
open: open,
|
|
24158
|
+
style: style,
|
|
24140
24159
|
children: [
|
|
24141
24160
|
/*#__PURE__*/ jsxs(InputWrapper, {
|
|
24142
24161
|
children: [
|
|
@@ -33575,7 +33594,7 @@ var Table = function(param) {
|
|
|
33575
33594
|
var containerRef = useRef(null);
|
|
33576
33595
|
var _useState = _sliced_to_array$1(useState({}), 2), columnSizing = _useState[0], setColumnSizing = _useState[1];
|
|
33577
33596
|
var _useState1 = _sliced_to_array$1(useState(null), 2), openMenuId = _useState1[0], setOpenMenuId = _useState1[1];
|
|
33578
|
-
var disableControls = isLoading || !data.length || !!error;
|
|
33597
|
+
var disableControls = isLoading || !(data === null || data === void 0 ? void 0 : data.length) || !!error;
|
|
33579
33598
|
var hasSomePageProps = !!(pageInfo || onPageSizeChange || onPageChange);
|
|
33580
33599
|
var hasAllPageProps = !!(pageInfo && onPageSizeChange && onPageChange);
|
|
33581
33600
|
if (hasSomePageProps && !hasAllPageProps) {
|
|
@@ -33736,7 +33755,7 @@ var Table = function(param) {
|
|
|
33736
33755
|
ref: containerRef,
|
|
33737
33756
|
children: [
|
|
33738
33757
|
isLoading && /*#__PURE__*/ jsx(LoadingOverlay, {}),
|
|
33739
|
-
Boolean(!isLoading && (!data.length || error)) && /*#__PURE__*/ jsx(Typography, {
|
|
33758
|
+
Boolean(!isLoading && (!(data === null || data === void 0 ? void 0 : data.length) || error)) && /*#__PURE__*/ jsx(Typography, {
|
|
33740
33759
|
variant: "paragraph200Regular",
|
|
33741
33760
|
as: "div",
|
|
33742
33761
|
style: {
|
package/package.json
CHANGED
|
@@ -16,4 +16,4 @@ export interface SelectProps extends BaseSelectProps {
|
|
|
16
16
|
value: any;
|
|
17
17
|
setValue: (value: string) => void;
|
|
18
18
|
}
|
|
19
|
-
export declare const Select: ({ sz, error, options, checkbox, placeholder, value, setValue, initialValue, type, disabled, ...props }: SelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const Select: ({ sz, error, options, checkbox, placeholder, value, setValue, initialValue, type, style, disabled, ...props }: SelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|