@majoo-ui/react 1.57.13 → 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.
@@ -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 function InputSelect({ option, onChange, value, placeholder, searchPlaceholder, embedSearch, size, disabled, search, iconColor, hideArrowicon, showLeadingIcon, placement, disabledOptions, textSelector, valueSelector, readOnly, isInvalid, noOptionIcon, fetchData, onSearch, isLoading, showTooltip, css, renderFooter, optionCss, ...props }: InputSelectProps): JSX.Element;
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, CircleInfoOutline, 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';
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: node => {
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
- function InputSelect(_a) {
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(this, void 0, void 0, function* () {
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({}, getToggleButtonProps({
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 = [],
@@ -50728,7 +50787,9 @@ const PieChartComponent = ({
50728
50787
  tooltip,
50729
50788
  title,
50730
50789
  subtitle,
50731
- label
50790
+ label,
50791
+ outerRadius,
50792
+ innerRadius
50732
50793
  }) => {
50733
50794
  var _a;
50734
50795
  const emptyData = [{
@@ -50814,8 +50875,8 @@ const PieChartComponent = ({
50814
50875
  data: formattedData,
50815
50876
  cx: "50%",
50816
50877
  cy: "50%",
50817
- innerRadius: 70,
50818
- outerRadius: 100,
50878
+ innerRadius: innerRadius,
50879
+ outerRadius: outerRadius,
50819
50880
  dataKey: "total",
50820
50881
  onMouseEnter: x => {
50821
50882
  setActiveIndex(formattedData.findIndex(y => y.name === x.name));
@@ -50868,7 +50929,9 @@ PieChartComponent.defaultProps = {
50868
50929
  data: [],
50869
50930
  position: 'right'
50870
50931
  },
50871
- isMobile: false
50932
+ isMobile: false,
50933
+ outerRadius: 100,
50934
+ innerRadius: 70
50872
50935
  };
50873
50936
 
50874
50937
  var _jsxFileName = "/Users/ryanakbar20/Documents/project/majoo/majoo-ui/packages/react/src/colors/Colors.js";
@@ -52367,4 +52430,4 @@ const useToggle = initialValue => {
52367
52430
  return useReducer(toggleReducer, initialValue);
52368
52431
  };
52369
52432
 
52370
- 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, SelectInputSearch, 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 };
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: function (node) {
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
- function InputSelect(_a) {
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(_this, void 0, void 0, function () {
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({}, getToggleButtonProps({
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,
@@ -51258,7 +51316,9 @@
51258
51316
  tooltip = _a.tooltip,
51259
51317
  title = _a.title,
51260
51318
  subtitle = _a.subtitle,
51261
- label = _a.label;
51319
+ label = _a.label,
51320
+ outerRadius = _a.outerRadius,
51321
+ innerRadius = _a.innerRadius;
51262
51322
  var emptyData = [{
51263
51323
  id: '0',
51264
51324
  name: '',
@@ -51348,8 +51408,8 @@
51348
51408
  data: formattedData,
51349
51409
  cx: "50%",
51350
51410
  cy: "50%",
51351
- innerRadius: 70,
51352
- outerRadius: 100,
51411
+ innerRadius: innerRadius,
51412
+ outerRadius: outerRadius,
51353
51413
  dataKey: "total",
51354
51414
  onMouseEnter: function (x) {
51355
51415
  setActiveIndex(formattedData.findIndex(function (y) {
@@ -51408,7 +51468,9 @@
51408
51468
  data: [],
51409
51469
  position: 'right'
51410
51470
  },
51411
- isMobile: false
51471
+ isMobile: false,
51472
+ outerRadius: 100,
51473
+ innerRadius: 70
51412
51474
  };
51413
51475
 
51414
51476
  var _jsxFileName = "/Users/ryanakbar20/Documents/project/majoo/majoo-ui/packages/react/src/colors/Colors.js";
@@ -53004,6 +53066,7 @@
53004
53066
  exports.IconContainer = IconContainer;
53005
53067
  exports.Image = Image;
53006
53068
  exports.ImageDevicePreview = ImageDevicePreview;
53069
+ exports.Input = Input$7;
53007
53070
  exports.InputCheckbox = InputCheckbox;
53008
53071
  exports.InputColorPicker = InputColorPicker;
53009
53072
  exports.InputCombobox = InputCombobox;
@@ -53086,7 +53149,6 @@
53086
53149
  exports.SINGLE_PICKER = SINGLE_PICKER;
53087
53150
  exports.SelectBox = SelectBox;
53088
53151
  exports.SelectContainer = SelectContainer;
53089
- exports.SelectInputSearch = SelectInputSearch;
53090
53152
  exports.SelectItem = SelectItem;
53091
53153
  exports.SelectOption = SelectOption;
53092
53154
  exports.Separator = Separator$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.57.13",
3
+ "version": "1.57.14",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",