@majoo-ui/react 1.57.12 → 1.57.14
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.
|
@@ -62,6 +62,10 @@ interface EditableTableProps<Data extends object> {
|
|
|
62
62
|
* expanded row callback.
|
|
63
63
|
*/
|
|
64
64
|
onExpand?: (expanded: boolean) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Override isMobile condition
|
|
67
|
+
*/
|
|
68
|
+
isMobileLayout?: boolean;
|
|
65
69
|
}
|
|
66
70
|
interface RemoveProps {
|
|
67
71
|
position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
|
|
@@ -198,6 +198,104 @@ export declare const SelectBox: import("@stitches/react/types/styled-component")
|
|
|
198
198
|
backgroundColor: string;
|
|
199
199
|
};
|
|
200
200
|
}>>;
|
|
201
|
+
export declare const Input: import("@stitches/react/types/styled-component").StyledComponent<"input", {
|
|
202
|
+
isReadOnly?: boolean | "true" | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
sm: "(min-width: 359px)";
|
|
205
|
+
md: "(min-width: 767px)";
|
|
206
|
+
lg: "(min-width: 1023px)";
|
|
207
|
+
xl: "(min-width: 1199px)";
|
|
208
|
+
'2xl': "(min-width: 1399px)";
|
|
209
|
+
'3xl': "(min-width: 1600px)";
|
|
210
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
211
|
+
sm: "(min-width: 359px)";
|
|
212
|
+
md: "(min-width: 767px)";
|
|
213
|
+
lg: "(min-width: 1023px)";
|
|
214
|
+
xl: "(min-width: 1199px)";
|
|
215
|
+
'2xl': "(min-width: 1399px)";
|
|
216
|
+
'3xl': "(min-width: 1600px)";
|
|
217
|
+
}, {
|
|
218
|
+
colors: unknown;
|
|
219
|
+
space: unknown;
|
|
220
|
+
shadows: unknown;
|
|
221
|
+
fontSizes: unknown;
|
|
222
|
+
fonts: unknown;
|
|
223
|
+
lineHeights: unknown;
|
|
224
|
+
letterSpacings: unknown;
|
|
225
|
+
radii: unknown;
|
|
226
|
+
sizes: unknown;
|
|
227
|
+
zIndices: unknown;
|
|
228
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
229
|
+
m: (value: {
|
|
230
|
+
readonly [$$ScaleValue]: "space";
|
|
231
|
+
}) => {
|
|
232
|
+
margin: {
|
|
233
|
+
readonly [$$ScaleValue]: "space";
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
mt: (value: {
|
|
237
|
+
readonly [$$ScaleValue]: "space";
|
|
238
|
+
}) => {
|
|
239
|
+
marginTop: {
|
|
240
|
+
readonly [$$ScaleValue]: "space";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
mr: (value: {
|
|
244
|
+
readonly [$$ScaleValue]: "space";
|
|
245
|
+
}) => {
|
|
246
|
+
marginRight: {
|
|
247
|
+
readonly [$$ScaleValue]: "space";
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
mb: (value: {
|
|
251
|
+
readonly [$$ScaleValue]: "space";
|
|
252
|
+
}) => {
|
|
253
|
+
marginBottom: {
|
|
254
|
+
readonly [$$ScaleValue]: "space";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
ml: (value: {
|
|
258
|
+
readonly [$$ScaleValue]: "space";
|
|
259
|
+
}) => {
|
|
260
|
+
marginLeft: {
|
|
261
|
+
readonly [$$ScaleValue]: "space";
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
mx: (value: {
|
|
265
|
+
readonly [$$ScaleValue]: "space";
|
|
266
|
+
}) => {
|
|
267
|
+
marginLeft: {
|
|
268
|
+
readonly [$$ScaleValue]: "space";
|
|
269
|
+
};
|
|
270
|
+
marginRight: {
|
|
271
|
+
readonly [$$ScaleValue]: "space";
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
my: (value: {
|
|
275
|
+
readonly [$$ScaleValue]: "space";
|
|
276
|
+
}) => {
|
|
277
|
+
marginTop: {
|
|
278
|
+
readonly [$$ScaleValue]: "space";
|
|
279
|
+
};
|
|
280
|
+
marginBottom: {
|
|
281
|
+
readonly [$$ScaleValue]: "space";
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
size: (value: {
|
|
285
|
+
readonly [$$PropertyValue]: "width";
|
|
286
|
+
}) => {
|
|
287
|
+
width: {
|
|
288
|
+
readonly [$$PropertyValue]: "width";
|
|
289
|
+
};
|
|
290
|
+
height: {
|
|
291
|
+
readonly [$$PropertyValue]: "width";
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
subtleColor: (value: string) => {
|
|
295
|
+
color: string;
|
|
296
|
+
backgroundColor: string;
|
|
297
|
+
};
|
|
298
|
+
}>>;
|
|
201
299
|
export declare const IconContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
202
300
|
disabled?: boolean | "true" | undefined;
|
|
203
301
|
}, {
|
|
@@ -587,7 +685,6 @@ export declare const SelectItem: import("@stitches/react/types/styled-component"
|
|
|
587
685
|
backgroundColor: string;
|
|
588
686
|
};
|
|
589
687
|
}>>;
|
|
590
|
-
export declare const SelectInputSearch: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
|
|
591
688
|
export declare type Option = {
|
|
592
689
|
value: string;
|
|
593
690
|
name: string;
|
|
@@ -713,5 +810,5 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
|
|
|
713
810
|
*/
|
|
714
811
|
renderFooter?: () => React.ReactNode;
|
|
715
812
|
}
|
|
716
|
-
export declare
|
|
813
|
+
export declare const InputSelect: React.ForwardRefExoticComponent<InputSelectProps & React.RefAttributes<HTMLInputElement>>;
|
|
717
814
|
export default InputSelect;
|
|
@@ -68,9 +68,17 @@ interface PieChartProps {
|
|
|
68
68
|
* Label config of chart.
|
|
69
69
|
*/
|
|
70
70
|
label?: PieChartLabel;
|
|
71
|
+
/**
|
|
72
|
+
* Custom outer radius size.
|
|
73
|
+
*/
|
|
74
|
+
outerRadius?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Custom inner radius size.
|
|
77
|
+
*/
|
|
78
|
+
innerRadius?: number;
|
|
71
79
|
}
|
|
72
80
|
declare const PieChartComponent: {
|
|
73
|
-
({ data, css, avatarURL, avatarAcronym, validAvatar, legend, isMobile, tooltip, title, subtitle, label, }: PieChartProps): JSX.Element;
|
|
81
|
+
({ data, css, avatarURL, avatarAcronym, validAvatar, legend, isMobile, tooltip, title, subtitle, label, outerRadius, innerRadius, }: PieChartProps): JSX.Element;
|
|
74
82
|
defaultProps: {
|
|
75
83
|
data: never[];
|
|
76
84
|
avatarURL: undefined;
|
|
@@ -83,6 +91,8 @@ declare const PieChartComponent: {
|
|
|
83
91
|
position: string;
|
|
84
92
|
};
|
|
85
93
|
isMobile: boolean;
|
|
94
|
+
outerRadius: number;
|
|
95
|
+
innerRadius: number;
|
|
86
96
|
};
|
|
87
97
|
};
|
|
88
98
|
export default PieChartComponent;
|
package/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { useState, useEffect, createContext, useContext, useRef,
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { createStitches, styled as styled$1 } from '@stitches/react';
|
|
5
5
|
import { foundations } from '@majoo-ui/core';
|
|
6
|
-
import { CloseOutline, UserFilled, CircleQuestionOutline, SearchOutline, CloseFilled,
|
|
6
|
+
import { CloseOutline, UserFilled, CircleQuestionOutline, CircleInfoOutline, SearchOutline, CloseFilled, CaretDownOutline, ChevronUpOutline, ChevronDownOutline, CirclePlusOutline, SortingOutline, MinusOutline, PlusOutline, ChevronLgLeftOutline, ChevronLgRightOutline, ChevronLeftOutline, ChevronRightOutline, TimeOutline, CalendarOutline, ArrowLeftOutline, ArrowRightOutline, EllipsisHorizontalOutline, EyeOutline, UploadOutline, ImageOutline, ChevronUpDownOutline, CheckFilled, RemoveOutline, LocationOutline } from '@majoo-ui/icons';
|
|
7
7
|
import { Transition } from 'react-transition-group';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
9
|
import { Portal } from '@majoo-ui/helpers';
|
|
@@ -9039,7 +9039,7 @@ const StyledText$1 = {
|
|
|
9039
9039
|
overflow: 'hidden',
|
|
9040
9040
|
textOverflow: 'ellipsis'
|
|
9041
9041
|
};
|
|
9042
|
-
const SelectInputSearch = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
9042
|
+
const SelectInputSearch$1 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
9043
9043
|
var {
|
|
9044
9044
|
showLeadingIcon = false,
|
|
9045
9045
|
showClearIcon = true,
|
|
@@ -9073,12 +9073,7 @@ const SelectInputSearch = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
9073
9073
|
placeholder: placeholder,
|
|
9074
9074
|
readOnly: readOnly,
|
|
9075
9075
|
isReadOnly: readOnly,
|
|
9076
|
-
ref:
|
|
9077
|
-
if (forwardedRef) {
|
|
9078
|
-
if (typeof forwardedRef === 'function') forwardedRef(node);else forwardedRef.current = node;
|
|
9079
|
-
}
|
|
9080
|
-
inputRef.current = node;
|
|
9081
|
-
},
|
|
9076
|
+
ref: forwardedRef,
|
|
9082
9077
|
disabled: disabled,
|
|
9083
9078
|
css: {
|
|
9084
9079
|
marginLeft: 0,
|
|
@@ -9100,7 +9095,7 @@ const SelectInputSearch = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
9100
9095
|
}, void 0)]
|
|
9101
9096
|
}), void 0);
|
|
9102
9097
|
});
|
|
9103
|
-
|
|
9098
|
+
const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
9104
9099
|
var {
|
|
9105
9100
|
option,
|
|
9106
9101
|
onChange,
|
|
@@ -9182,7 +9177,7 @@ function InputSelect(_a) {
|
|
|
9182
9177
|
setItem(generatedOption);
|
|
9183
9178
|
setOptions(generatedOption);
|
|
9184
9179
|
}, [option, disabledOptions, valueSelector, textSelector]);
|
|
9185
|
-
const debouncedSearch = React.useRef(debounce(query => __awaiter(
|
|
9180
|
+
const debouncedSearch = React.useRef(debounce(query => __awaiter(void 0, void 0, void 0, function* () {
|
|
9186
9181
|
setQuery(query);
|
|
9187
9182
|
if (onSearch) onSearch(query);
|
|
9188
9183
|
}), 1000)).current;
|
|
@@ -9267,7 +9262,8 @@ function InputSelect(_a) {
|
|
|
9267
9262
|
flex: 1
|
|
9268
9263
|
}
|
|
9269
9264
|
}, {
|
|
9270
|
-
children: jsx(SelectInputSearch, {
|
|
9265
|
+
children: jsx(SelectInputSearch$1, {
|
|
9266
|
+
ref: ref,
|
|
9271
9267
|
showLeadingIcon: showLeadingIcon,
|
|
9272
9268
|
showClearIcon: hideArrowicon,
|
|
9273
9269
|
disabled: disabled,
|
|
@@ -9289,7 +9285,9 @@ function InputSelect(_a) {
|
|
|
9289
9285
|
disabled: disabled || readOnly
|
|
9290
9286
|
}).onClick : undefined
|
|
9291
9287
|
}, void 0)
|
|
9292
|
-
}), void 0) : jsx(Button$3, Object.assign({
|
|
9288
|
+
}), void 0) : jsx(Button$3, Object.assign({
|
|
9289
|
+
ref: ref
|
|
9290
|
+
}, getToggleButtonProps({
|
|
9293
9291
|
disabled: disabled || readOnly
|
|
9294
9292
|
}), {
|
|
9295
9293
|
disabled: disabled,
|
|
@@ -9450,7 +9448,7 @@ function InputSelect(_a) {
|
|
|
9450
9448
|
}), void 0);
|
|
9451
9449
|
}
|
|
9452
9450
|
}), void 0);
|
|
9453
|
-
}
|
|
9451
|
+
});
|
|
9454
9452
|
|
|
9455
9453
|
var tryToString$3 = tryToString$5;
|
|
9456
9454
|
|
|
@@ -12570,6 +12568,67 @@ $$8({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
|
|
|
12570
12568
|
}
|
|
12571
12569
|
});
|
|
12572
12570
|
|
|
12571
|
+
const SelectInputSearch = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
12572
|
+
var {
|
|
12573
|
+
showLeadingIcon = false,
|
|
12574
|
+
showClearIcon = true,
|
|
12575
|
+
disabled,
|
|
12576
|
+
placeholder,
|
|
12577
|
+
readOnly,
|
|
12578
|
+
inputProps,
|
|
12579
|
+
handleInputValue,
|
|
12580
|
+
noStyling,
|
|
12581
|
+
onChange
|
|
12582
|
+
} = _a,
|
|
12583
|
+
props = __rest(_a, ["showLeadingIcon", "showClearIcon", "disabled", "placeholder", "readOnly", "inputProps", "handleInputValue", "noStyling", "onChange"]);
|
|
12584
|
+
const inputRef = React.useRef(null);
|
|
12585
|
+
return jsxs(InputGroup, Object.assign({
|
|
12586
|
+
css: !noStyling && {
|
|
12587
|
+
height: '100%',
|
|
12588
|
+
border: 'none',
|
|
12589
|
+
'&:hover': {
|
|
12590
|
+
border: 'none'
|
|
12591
|
+
}
|
|
12592
|
+
},
|
|
12593
|
+
disabled: disabled
|
|
12594
|
+
}, {
|
|
12595
|
+
children: [jsx(InputLeftElement, {
|
|
12596
|
+
children: showLeadingIcon && jsx(SearchOutline, {}, void 0),
|
|
12597
|
+
css: !showLeadingIcon ? {
|
|
12598
|
+
width: '$spacing-05',
|
|
12599
|
+
padding: 0
|
|
12600
|
+
} : undefined
|
|
12601
|
+
}, void 0), jsx(Input$7, Object.assign({}, inputProps, props, {
|
|
12602
|
+
placeholder: placeholder,
|
|
12603
|
+
readOnly: readOnly,
|
|
12604
|
+
isReadOnly: readOnly,
|
|
12605
|
+
ref: node => {
|
|
12606
|
+
if (forwardedRef) {
|
|
12607
|
+
if (typeof forwardedRef === 'function') forwardedRef(node);else forwardedRef.current = node;
|
|
12608
|
+
}
|
|
12609
|
+
inputRef.current = node;
|
|
12610
|
+
},
|
|
12611
|
+
disabled: disabled,
|
|
12612
|
+
css: {
|
|
12613
|
+
marginLeft: 0,
|
|
12614
|
+
height: 'fit-content'
|
|
12615
|
+
}
|
|
12616
|
+
}), void 0), jsx(InputRightElement, {
|
|
12617
|
+
children: showClearIcon && (inputProps.value || '').length > 0 && !disabled ? jsx(CloseFilled, {}, void 0) : jsx("div", {}, void 0),
|
|
12618
|
+
onClick: e => {
|
|
12619
|
+
if (!disabled) {
|
|
12620
|
+
inputProps.onChange(Object.assign(Object.assign({}, e), {
|
|
12621
|
+
target: Object.assign(Object.assign({}, e.target), {
|
|
12622
|
+
value: ''
|
|
12623
|
+
})
|
|
12624
|
+
}));
|
|
12625
|
+
if (handleInputValue) handleInputValue('');
|
|
12626
|
+
if (inputRef.current) inputRef.current.focus();
|
|
12627
|
+
}
|
|
12628
|
+
}
|
|
12629
|
+
}, void 0)]
|
|
12630
|
+
}), void 0);
|
|
12631
|
+
});
|
|
12573
12632
|
const InputCombobox = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
12574
12633
|
var {
|
|
12575
12634
|
options: items = [],
|
|
@@ -47509,7 +47568,8 @@ function EditableTable(props) {
|
|
|
47509
47568
|
getCheckboxProps,
|
|
47510
47569
|
keyId = 'id',
|
|
47511
47570
|
selectedIds,
|
|
47512
|
-
onExpand
|
|
47571
|
+
onExpand,
|
|
47572
|
+
isMobileLayout
|
|
47513
47573
|
} = props;
|
|
47514
47574
|
const {
|
|
47515
47575
|
t
|
|
@@ -47582,7 +47642,7 @@ function EditableTable(props) {
|
|
|
47582
47642
|
});
|
|
47583
47643
|
}
|
|
47584
47644
|
}, [selectedRowIds, data, onSelectedChange, selectedIndex]);
|
|
47585
|
-
const
|
|
47645
|
+
const isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 767px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
47586
47646
|
const getCustomRows = (row, renderRow) => {
|
|
47587
47647
|
var _a;
|
|
47588
47648
|
let customStyle = {};
|
|
@@ -47634,7 +47694,7 @@ function EditableTable(props) {
|
|
|
47634
47694
|
})
|
|
47635
47695
|
}), void 0);
|
|
47636
47696
|
};
|
|
47637
|
-
return
|
|
47697
|
+
return !isMobile ? jsx(TableContainer$1, Object.assign({
|
|
47638
47698
|
css: props === null || props === void 0 ? void 0 : props.css
|
|
47639
47699
|
}, {
|
|
47640
47700
|
children: jsxs(TableContent$1, Object.assign({}, getTableProps(), {
|
|
@@ -50727,7 +50787,9 @@ const PieChartComponent = ({
|
|
|
50727
50787
|
tooltip,
|
|
50728
50788
|
title,
|
|
50729
50789
|
subtitle,
|
|
50730
|
-
label
|
|
50790
|
+
label,
|
|
50791
|
+
outerRadius,
|
|
50792
|
+
innerRadius
|
|
50731
50793
|
}) => {
|
|
50732
50794
|
var _a;
|
|
50733
50795
|
const emptyData = [{
|
|
@@ -50813,8 +50875,8 @@ const PieChartComponent = ({
|
|
|
50813
50875
|
data: formattedData,
|
|
50814
50876
|
cx: "50%",
|
|
50815
50877
|
cy: "50%",
|
|
50816
|
-
innerRadius:
|
|
50817
|
-
outerRadius:
|
|
50878
|
+
innerRadius: innerRadius,
|
|
50879
|
+
outerRadius: outerRadius,
|
|
50818
50880
|
dataKey: "total",
|
|
50819
50881
|
onMouseEnter: x => {
|
|
50820
50882
|
setActiveIndex(formattedData.findIndex(y => y.name === x.name));
|
|
@@ -50867,7 +50929,9 @@ PieChartComponent.defaultProps = {
|
|
|
50867
50929
|
data: [],
|
|
50868
50930
|
position: 'right'
|
|
50869
50931
|
},
|
|
50870
|
-
isMobile: false
|
|
50932
|
+
isMobile: false,
|
|
50933
|
+
outerRadius: 100,
|
|
50934
|
+
innerRadius: 70
|
|
50871
50935
|
};
|
|
50872
50936
|
|
|
50873
50937
|
var _jsxFileName = "/Users/ryanakbar20/Documents/project/majoo/majoo-ui/packages/react/src/colors/Colors.js";
|
|
@@ -52366,4 +52430,4 @@ const useToggle = initialValue => {
|
|
|
52366
52430
|
return useReducer(toggleReducer, initialValue);
|
|
52367
52431
|
};
|
|
52368
52432
|
|
|
52369
|
-
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer,
|
|
52433
|
+
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagList, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
|
package/index.umd.js
CHANGED
|
@@ -9121,7 +9121,7 @@
|
|
|
9121
9121
|
overflow: 'hidden',
|
|
9122
9122
|
textOverflow: 'ellipsis'
|
|
9123
9123
|
};
|
|
9124
|
-
var SelectInputSearch = /*#__PURE__*/React__namespace.forwardRef(function (_a, forwardedRef) {
|
|
9124
|
+
var SelectInputSearch$1 = /*#__PURE__*/React__namespace.forwardRef(function (_a, forwardedRef) {
|
|
9125
9125
|
var _b = _a.showLeadingIcon,
|
|
9126
9126
|
showLeadingIcon = _b === void 0 ? false : _b,
|
|
9127
9127
|
_c = _a.showClearIcon,
|
|
@@ -9155,12 +9155,7 @@
|
|
|
9155
9155
|
placeholder: placeholder,
|
|
9156
9156
|
readOnly: readOnly,
|
|
9157
9157
|
isReadOnly: readOnly,
|
|
9158
|
-
ref:
|
|
9159
|
-
if (forwardedRef) {
|
|
9160
|
-
if (typeof forwardedRef === 'function') forwardedRef(node);else forwardedRef.current = node;
|
|
9161
|
-
}
|
|
9162
|
-
inputRef.current = node;
|
|
9163
|
-
},
|
|
9158
|
+
ref: forwardedRef,
|
|
9164
9159
|
disabled: disabled,
|
|
9165
9160
|
css: {
|
|
9166
9161
|
marginLeft: 0,
|
|
@@ -9182,8 +9177,7 @@
|
|
|
9182
9177
|
}, void 0)]
|
|
9183
9178
|
}), void 0);
|
|
9184
9179
|
});
|
|
9185
|
-
|
|
9186
|
-
var _this = this;
|
|
9180
|
+
var InputSelect = /*#__PURE__*/React__namespace.forwardRef(function (_a, ref) {
|
|
9187
9181
|
var option = _a.option,
|
|
9188
9182
|
onChange = _a.onChange,
|
|
9189
9183
|
value = _a.value,
|
|
@@ -9297,7 +9291,7 @@
|
|
|
9297
9291
|
setOptions(generatedOption);
|
|
9298
9292
|
}, [option, disabledOptions, valueSelector, textSelector]);
|
|
9299
9293
|
var debouncedSearch = React__namespace.useRef(debounce__default["default"](function (query) {
|
|
9300
|
-
return __awaiter(
|
|
9294
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
9301
9295
|
return __generator(this, function (_a) {
|
|
9302
9296
|
setQuery(query);
|
|
9303
9297
|
if (onSearch) onSearch(query);
|
|
@@ -9391,7 +9385,8 @@
|
|
|
9391
9385
|
flex: 1
|
|
9392
9386
|
}
|
|
9393
9387
|
}, {
|
|
9394
|
-
children: jsxRuntime.jsx(SelectInputSearch, {
|
|
9388
|
+
children: jsxRuntime.jsx(SelectInputSearch$1, {
|
|
9389
|
+
ref: ref,
|
|
9395
9390
|
showLeadingIcon: showLeadingIcon,
|
|
9396
9391
|
showClearIcon: hideArrowicon,
|
|
9397
9392
|
disabled: disabled,
|
|
@@ -9413,7 +9408,9 @@
|
|
|
9413
9408
|
disabled: disabled || readOnly
|
|
9414
9409
|
}).onClick : undefined
|
|
9415
9410
|
}, void 0)
|
|
9416
|
-
}), void 0) : jsxRuntime.jsx(Button$3, __assign({
|
|
9411
|
+
}), void 0) : jsxRuntime.jsx(Button$3, __assign({
|
|
9412
|
+
ref: ref
|
|
9413
|
+
}, getToggleButtonProps({
|
|
9417
9414
|
disabled: disabled || readOnly
|
|
9418
9415
|
}), {
|
|
9419
9416
|
disabled: disabled,
|
|
@@ -9578,7 +9575,7 @@
|
|
|
9578
9575
|
}), void 0);
|
|
9579
9576
|
}
|
|
9580
9577
|
}), void 0);
|
|
9581
|
-
}
|
|
9578
|
+
});
|
|
9582
9579
|
|
|
9583
9580
|
var tryToString$3 = tryToString$5;
|
|
9584
9581
|
|
|
@@ -12749,6 +12746,67 @@
|
|
|
12749
12746
|
}
|
|
12750
12747
|
});
|
|
12751
12748
|
|
|
12749
|
+
var SelectInputSearch = /*#__PURE__*/React__namespace.forwardRef(function (_a, forwardedRef) {
|
|
12750
|
+
var _b = _a.showLeadingIcon,
|
|
12751
|
+
showLeadingIcon = _b === void 0 ? false : _b,
|
|
12752
|
+
_c = _a.showClearIcon,
|
|
12753
|
+
showClearIcon = _c === void 0 ? true : _c,
|
|
12754
|
+
disabled = _a.disabled,
|
|
12755
|
+
placeholder = _a.placeholder,
|
|
12756
|
+
readOnly = _a.readOnly,
|
|
12757
|
+
inputProps = _a.inputProps,
|
|
12758
|
+
handleInputValue = _a.handleInputValue,
|
|
12759
|
+
noStyling = _a.noStyling;
|
|
12760
|
+
_a.onChange;
|
|
12761
|
+
var props = __rest(_a, ["showLeadingIcon", "showClearIcon", "disabled", "placeholder", "readOnly", "inputProps", "handleInputValue", "noStyling", "onChange"]);
|
|
12762
|
+
var inputRef = React__namespace.useRef(null);
|
|
12763
|
+
return jsxRuntime.jsxs(InputGroup, __assign({
|
|
12764
|
+
css: !noStyling && {
|
|
12765
|
+
height: '100%',
|
|
12766
|
+
border: 'none',
|
|
12767
|
+
'&:hover': {
|
|
12768
|
+
border: 'none'
|
|
12769
|
+
}
|
|
12770
|
+
},
|
|
12771
|
+
disabled: disabled
|
|
12772
|
+
}, {
|
|
12773
|
+
children: [jsxRuntime.jsx(InputLeftElement, {
|
|
12774
|
+
children: showLeadingIcon && jsxRuntime.jsx(icons.SearchOutline, {}, void 0),
|
|
12775
|
+
css: !showLeadingIcon ? {
|
|
12776
|
+
width: '$spacing-05',
|
|
12777
|
+
padding: 0
|
|
12778
|
+
} : undefined
|
|
12779
|
+
}, void 0), jsxRuntime.jsx(Input$7, __assign({}, inputProps, props, {
|
|
12780
|
+
placeholder: placeholder,
|
|
12781
|
+
readOnly: readOnly,
|
|
12782
|
+
isReadOnly: readOnly,
|
|
12783
|
+
ref: function (node) {
|
|
12784
|
+
if (forwardedRef) {
|
|
12785
|
+
if (typeof forwardedRef === 'function') forwardedRef(node);else forwardedRef.current = node;
|
|
12786
|
+
}
|
|
12787
|
+
inputRef.current = node;
|
|
12788
|
+
},
|
|
12789
|
+
disabled: disabled,
|
|
12790
|
+
css: {
|
|
12791
|
+
marginLeft: 0,
|
|
12792
|
+
height: 'fit-content'
|
|
12793
|
+
}
|
|
12794
|
+
}), void 0), jsxRuntime.jsx(InputRightElement, {
|
|
12795
|
+
children: showClearIcon && (inputProps.value || '').length > 0 && !disabled ? jsxRuntime.jsx(icons.CloseFilled, {}, void 0) : jsxRuntime.jsx("div", {}, void 0),
|
|
12796
|
+
onClick: function (e) {
|
|
12797
|
+
if (!disabled) {
|
|
12798
|
+
inputProps.onChange(__assign(__assign({}, e), {
|
|
12799
|
+
target: __assign(__assign({}, e.target), {
|
|
12800
|
+
value: ''
|
|
12801
|
+
})
|
|
12802
|
+
}));
|
|
12803
|
+
if (handleInputValue) handleInputValue('');
|
|
12804
|
+
if (inputRef.current) inputRef.current.focus();
|
|
12805
|
+
}
|
|
12806
|
+
}
|
|
12807
|
+
}, void 0)]
|
|
12808
|
+
}), void 0);
|
|
12809
|
+
});
|
|
12752
12810
|
var InputCombobox = /*#__PURE__*/React__namespace.forwardRef(function (_a, forwardedRef) {
|
|
12753
12811
|
var _b = _a.options,
|
|
12754
12812
|
items = _b === void 0 ? [] : _b,
|
|
@@ -47928,7 +47986,8 @@
|
|
|
47928
47986
|
_a = props.keyId,
|
|
47929
47987
|
keyId = _a === void 0 ? 'id' : _a,
|
|
47930
47988
|
selectedIds = props.selectedIds,
|
|
47931
|
-
onExpand = props.onExpand
|
|
47989
|
+
onExpand = props.onExpand,
|
|
47990
|
+
isMobileLayout = props.isMobileLayout;
|
|
47932
47991
|
var t = reactI18next.useTranslation('translation').t;
|
|
47933
47992
|
var _b = React.useState(null),
|
|
47934
47993
|
selectedIndex = _b[0],
|
|
@@ -48000,7 +48059,7 @@
|
|
|
48000
48059
|
});
|
|
48001
48060
|
}
|
|
48002
48061
|
}, [selectedRowIds, data, onSelectedChange, selectedIndex]);
|
|
48003
|
-
var
|
|
48062
|
+
var isMobile = useMediaQuery(isMobileLayout === undefined ? '(max-width: 767px)' : isMobileLayout ? '(max-width: 8000px)' : '(max-width: 0px)');
|
|
48004
48063
|
var getCustomRows = function getCustomRows(row, renderRow) {
|
|
48005
48064
|
var _a;
|
|
48006
48065
|
var customStyle = {};
|
|
@@ -48055,7 +48114,7 @@
|
|
|
48055
48114
|
})
|
|
48056
48115
|
}), void 0);
|
|
48057
48116
|
};
|
|
48058
|
-
return
|
|
48117
|
+
return !isMobile ? jsxRuntime.jsx(TableContainer$1, __assign({
|
|
48059
48118
|
css: props === null || props === void 0 ? void 0 : props.css
|
|
48060
48119
|
}, {
|
|
48061
48120
|
children: jsxRuntime.jsxs(TableContent$1, __assign({}, getTableProps(), {
|
|
@@ -51257,7 +51316,9 @@
|
|
|
51257
51316
|
tooltip = _a.tooltip,
|
|
51258
51317
|
title = _a.title,
|
|
51259
51318
|
subtitle = _a.subtitle,
|
|
51260
|
-
label = _a.label
|
|
51319
|
+
label = _a.label,
|
|
51320
|
+
outerRadius = _a.outerRadius,
|
|
51321
|
+
innerRadius = _a.innerRadius;
|
|
51261
51322
|
var emptyData = [{
|
|
51262
51323
|
id: '0',
|
|
51263
51324
|
name: '',
|
|
@@ -51347,8 +51408,8 @@
|
|
|
51347
51408
|
data: formattedData,
|
|
51348
51409
|
cx: "50%",
|
|
51349
51410
|
cy: "50%",
|
|
51350
|
-
innerRadius:
|
|
51351
|
-
outerRadius:
|
|
51411
|
+
innerRadius: innerRadius,
|
|
51412
|
+
outerRadius: outerRadius,
|
|
51352
51413
|
dataKey: "total",
|
|
51353
51414
|
onMouseEnter: function (x) {
|
|
51354
51415
|
setActiveIndex(formattedData.findIndex(function (y) {
|
|
@@ -51407,7 +51468,9 @@
|
|
|
51407
51468
|
data: [],
|
|
51408
51469
|
position: 'right'
|
|
51409
51470
|
},
|
|
51410
|
-
isMobile: false
|
|
51471
|
+
isMobile: false,
|
|
51472
|
+
outerRadius: 100,
|
|
51473
|
+
innerRadius: 70
|
|
51411
51474
|
};
|
|
51412
51475
|
|
|
51413
51476
|
var _jsxFileName = "/Users/ryanakbar20/Documents/project/majoo/majoo-ui/packages/react/src/colors/Colors.js";
|
|
@@ -53003,6 +53066,7 @@
|
|
|
53003
53066
|
exports.IconContainer = IconContainer;
|
|
53004
53067
|
exports.Image = Image;
|
|
53005
53068
|
exports.ImageDevicePreview = ImageDevicePreview;
|
|
53069
|
+
exports.Input = Input$7;
|
|
53006
53070
|
exports.InputCheckbox = InputCheckbox;
|
|
53007
53071
|
exports.InputColorPicker = InputColorPicker;
|
|
53008
53072
|
exports.InputCombobox = InputCombobox;
|
|
@@ -53085,7 +53149,6 @@
|
|
|
53085
53149
|
exports.SINGLE_PICKER = SINGLE_PICKER;
|
|
53086
53150
|
exports.SelectBox = SelectBox;
|
|
53087
53151
|
exports.SelectContainer = SelectContainer;
|
|
53088
|
-
exports.SelectInputSearch = SelectInputSearch;
|
|
53089
53152
|
exports.SelectItem = SelectItem;
|
|
53090
53153
|
exports.SelectOption = SelectOption;
|
|
53091
53154
|
exports.Separator = Separator$2;
|