@majoo-ui/react 1.61.21 → 1.61.22

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.
@@ -1,19 +1,19 @@
1
- /// <reference types="react" />
2
- interface TriggerProps {
1
+ import React from 'react';
2
+ interface TriggerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
3
3
  id: string;
4
4
  triggerSide?: 'left' | 'right';
5
- children?: JSX.Element | string;
5
+ children?: React.ReactNode;
6
6
  }
7
- interface MenuProps {
7
+ interface MenuProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
8
8
  id: string;
9
- children?: JSX.Element | JSX.Element[];
9
+ children?: React.ReactNode;
10
10
  }
11
- interface ItemProps {
12
- children?: JSX.Element | string;
11
+ interface ItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'children'> {
12
+ children?: React.ReactNode;
13
13
  data?: object;
14
- onClick?: (e: any, data: any) => void;
14
+ onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, data?: object) => void;
15
15
  }
16
- export declare const ContextMenuTrigger: import("@stitches/react/types/styled-component").StyledComponent<(props: TriggerProps) => JSX.Element, {}, {
16
+ export declare const ContextMenuTrigger: import("@stitches/react/types/styled-component").StyledComponent<({ id, triggerSide, children, className, onClick, onContextMenu, style, ...rest }: TriggerProps) => JSX.Element, {}, {
17
17
  sm: "(min-width: 359px)";
18
18
  md: "(min-width: 767px)";
19
19
  lg: "(min-width: 1023px)";
@@ -110,7 +110,7 @@ export declare const ContextMenuTrigger: import("@stitches/react/types/styled-co
110
110
  backgroundColor: string;
111
111
  };
112
112
  }>>;
113
- export declare const ContextMenu: import("@stitches/react/types/styled-component").StyledComponent<(props: MenuProps) => JSX.Element, {}, {
113
+ export declare const ContextMenu: import("@stitches/react/types/styled-component").StyledComponent<({ id, children, className, style, ...rest }: MenuProps) => JSX.Element | null, {}, {
114
114
  sm: "(min-width: 359px)";
115
115
  md: "(min-width: 767px)";
116
116
  lg: "(min-width: 1023px)";
@@ -207,7 +207,7 @@ export declare const ContextMenu: import("@stitches/react/types/styled-component
207
207
  backgroundColor: string;
208
208
  };
209
209
  }>>;
210
- export declare const ContextMenuItem: import("@stitches/react/types/styled-component").StyledComponent<(props: ItemProps) => JSX.Element, {}, {
210
+ export declare const ContextMenuItem: import("@stitches/react/types/styled-component").StyledComponent<({ children, data, onClick, className, onKeyDown, ...rest }: ItemProps) => JSX.Element, {}, {
211
211
  sm: "(min-width: 359px)";
212
212
  md: "(min-width: 767px)";
213
213
  lg: "(min-width: 1023px)";
package/index.esm.js CHANGED
@@ -47,7 +47,7 @@ import 'leaflet-defaulticon-compatibility';
47
47
  import { ResponsiveContainer, LineChart as LineChart$1, XAxis, YAxis, CartesianGrid, Tooltip as Tooltip$2, Line as Line$2, BarChart, Legend, Bar, Cell as Cell$1, LabelList, PieChart, Pie, Sector } from 'recharts';
48
48
  import { EditorState } from 'draft-js';
49
49
  import { Editor } from 'react-draft-wysiwyg';
50
- import { ContextMenuTrigger as ContextMenuTrigger$1, ContextMenu as ContextMenu$1, MenuItem } from 'react-contextmenu';
50
+ import { Portal as Portal$1 } from '@radix-ui/react-portal';
51
51
  import ReactSkeleton, { SkeletonTheme } from 'react-loading-skeleton';
52
52
  import 'react-loading-skeleton/dist/skeleton.css';
53
53
  import { useVirtual } from 'react-virtual';
@@ -7925,7 +7925,7 @@ const StyledCheckbox = styled(CheckboxPrimitive.Root, {
7925
7925
  minHeight: '$$cbSize',
7926
7926
  width: '$$cbSize',
7927
7927
  height: '$$cbSize',
7928
- border: '1.5px solid $gray300',
7928
+ border: '1.5px solid $bgOutline',
7929
7929
  borderRadius: '3px',
7930
7930
  display: 'flex',
7931
7931
  alignItems: 'center',
@@ -8101,10 +8101,10 @@ const InputGroupStyle = styled('div', {
8101
8101
  color: '$textDisable'
8102
8102
  },
8103
8103
  '&:hover': {
8104
- border: '1px solid $bgBorder',
8104
+ border: '1px solid $bgOutline',
8105
8105
  borderRadius: '$lg',
8106
8106
  '& > .addon': {
8107
- border: '1px solid $bgBorder'
8107
+ border: '1px solid $bgOutline'
8108
8108
  }
8109
8109
  },
8110
8110
  '& > input': {
@@ -8159,7 +8159,7 @@ const InputGroupStyle = styled('div', {
8159
8159
  isLetter: {
8160
8160
  true: {
8161
8161
  borderRadius: '$lg',
8162
- border: '1px solid $bgBorder',
8162
+ border: '1px solid $bgOutline',
8163
8163
  '&:focus': {
8164
8164
  border: '1px solid $primary400'
8165
8165
  },
@@ -8177,7 +8177,7 @@ const InputGroupStyle = styled('div', {
8177
8177
  color: '$textDisable'
8178
8178
  },
8179
8179
  '&:hover': {
8180
- border: '1px solid $gray300'
8180
+ border: '1px solid $bgOutline'
8181
8181
  }
8182
8182
  }
8183
8183
  }
@@ -8277,14 +8277,14 @@ const InputAddon = styled(Text$1, {
8277
8277
  },
8278
8278
  placements: {
8279
8279
  left: {
8280
- border: '1px solid $gray300',
8280
+ border: '1px solid $bgOutline',
8281
8281
  borderRightWidth: 0,
8282
8282
  borderRadius: '$lg',
8283
8283
  borderEndEndRadius: 0,
8284
8284
  borderStartEndRadius: 0
8285
8285
  },
8286
8286
  right: {
8287
- border: '1px solid $gray300',
8287
+ border: '1px solid $bgOutline',
8288
8288
  borderLeftWidth: 0,
8289
8289
  borderRadius: '$lg',
8290
8290
  borderEndStartRadius: 0,
@@ -8427,7 +8427,7 @@ const disabledStyle = {
8427
8427
  color: '$textDisable'
8428
8428
  },
8429
8429
  '&:hover': {
8430
- border: '1px solid $gray300'
8430
+ border: '1px solid $bgOutline'
8431
8431
  }
8432
8432
  };
8433
8433
  const StyledInput$1 = styled('input', {
@@ -8454,7 +8454,7 @@ const StyledInput$1 = styled('input', {
8454
8454
  lineHeight: '$short-content-regular',
8455
8455
  fontWeight: '400',
8456
8456
  padding: '10px $spacing-05',
8457
- border: '1px solid $gray300',
8457
+ border: '1px solid $bgOutline',
8458
8458
  borderRadius: '$lg',
8459
8459
  '&:focus': {
8460
8460
  border: '1px solid $primary400'
@@ -8515,7 +8515,7 @@ const StyledInput$1 = styled('input', {
8515
8515
  color: '$textDisable'
8516
8516
  },
8517
8517
  '&:hover': {
8518
- border: '1px solid $gray300'
8518
+ border: '1px solid $bgOutline'
8519
8519
  }
8520
8520
  }
8521
8521
  }
@@ -8766,7 +8766,7 @@ const RADIO_BASE_STYLES = {
8766
8766
  textDecoration: 'none',
8767
8767
  WWebkitTapHighlightColor: 'rgba(0,0,0,0)',
8768
8768
  borderRadius: '$round',
8769
- border: '2px solid $gray300',
8769
+ border: '2px solid $bgOutline',
8770
8770
  overflow: 'hidden',
8771
8771
  '&[data-state=checked]': {
8772
8772
  border: '2px solid $primary500'
@@ -8822,7 +8822,7 @@ const Container$a = styled(Flex$1, {
8822
8822
  variants: {
8823
8823
  outlined: {
8824
8824
  true: {
8825
- border: '1px solid $gray300',
8825
+ border: '1px solid $bgOutline',
8826
8826
  borderRadius: '$lg',
8827
8827
  padding: '$spacing-03',
8828
8828
  '& > input': {
@@ -11124,7 +11124,7 @@ const StyledInput = styled(NumberFormat, {
11124
11124
  lineHeight: '$short-content-regular',
11125
11125
  fontWeight: '400',
11126
11126
  padding: '10px $spacing-05',
11127
- border: '1px solid $gray300',
11127
+ border: '1px solid $bgOutline',
11128
11128
  borderRadius: '$lg',
11129
11129
  '&:focus': {
11130
11130
  border: '1px solid $colors$primary400'
@@ -11562,7 +11562,7 @@ const InputTagsComponent = styled('div', {
11562
11562
  appearance: 'none',
11563
11563
  backgroundolor: 'none',
11564
11564
  boxSizing: 'border-box',
11565
- border: '1px solid $gray300',
11565
+ border: '1px solid $bgOutline',
11566
11566
  color: '$textPrimary',
11567
11567
  lineHeight: '$short-content-regular',
11568
11568
  fontSize: '$short-content-regular',
@@ -13178,7 +13178,7 @@ const SelectBox = styled(Flex$1, {
13178
13178
  appearance: 'none',
13179
13179
  background: 'none',
13180
13180
  boxSizing: 'border-box',
13181
- border: '1px solid $gray300',
13181
+ border: '1px solid $bgOutline',
13182
13182
  borderRadius: '$lg',
13183
13183
  outline: 'none',
13184
13184
  '&:focus-within': {
@@ -13202,10 +13202,10 @@ const SelectBox = styled(Flex$1, {
13202
13202
  color: '$textDisable',
13203
13203
  cursor: 'not-allowed',
13204
13204
  '&:hover': {
13205
- border: '1px solid $gray300'
13205
+ border: '1px solid $bgOutline'
13206
13206
  },
13207
13207
  '&:focus-within': {
13208
- border: '1px solid $gray300'
13208
+ border: '1px solid $bgOutline'
13209
13209
  }
13210
13210
  }
13211
13211
  },
@@ -13214,10 +13214,10 @@ const SelectBox = styled(Flex$1, {
13214
13214
  backgroundColor: '$formDisable',
13215
13215
  color: '$textPrimary',
13216
13216
  '&:hover': {
13217
- border: '1px solid $gray300'
13217
+ border: '1px solid $bgOutline'
13218
13218
  },
13219
13219
  '&:focus-within': {
13220
- border: '1px solid $gray300'
13220
+ border: '1px solid $bgOutline'
13221
13221
  }
13222
13222
  }
13223
13223
  },
@@ -14234,7 +14234,7 @@ const Select = styled('div', {
14234
14234
  appearance: 'none',
14235
14235
  background: 'none',
14236
14236
  boxSizing: 'border-box',
14237
- border: '1px solid $gray300',
14237
+ border: '1px solid $bgOutline',
14238
14238
  borderRadius: '$md',
14239
14239
  outline: 'none',
14240
14240
  '&:focus-within': {
@@ -14262,10 +14262,10 @@ const Select = styled('div', {
14262
14262
  color: '$textDisable',
14263
14263
  cursor: 'not-allowed',
14264
14264
  '&:hover': {
14265
- border: '1px solid $gray300'
14265
+ border: '1px solid $bgOutline'
14266
14266
  },
14267
14267
  '&:focus-within': {
14268
- border: '1px solid $gray300'
14268
+ border: '1px solid $bgOutline'
14269
14269
  }
14270
14270
  }
14271
14271
  },
@@ -15907,7 +15907,7 @@ const InputWrapper = styled('div', {
15907
15907
  appearance: 'none',
15908
15908
  backgroundolor: 'none',
15909
15909
  boxSizing: 'border-box',
15910
- border: '1px solid $gray300',
15910
+ border: '1px solid $bgOutline',
15911
15911
  borderRadius: '$md',
15912
15912
  color: '$textPrimary',
15913
15913
  lineHeight: '$short-content-regular',
@@ -16153,7 +16153,7 @@ const IconBox = styled('div', {
16153
16153
  border: {
16154
16154
  true: {
16155
16155
  borderRadius: 3,
16156
- border: '1.5px solid $gray300'
16156
+ border: '1.5px solid $bgOutline'
16157
16157
  }
16158
16158
  }
16159
16159
  }
@@ -16447,7 +16447,7 @@ function InputResourceList({
16447
16447
  }), void 0)
16448
16448
  }), void 0), jsxs(Box, Object.assign({
16449
16449
  css: Object.assign({
16450
- border: '1px solid $gray300',
16450
+ border: '1px solid $bgOutline',
16451
16451
  padding: '$spacing-05',
16452
16452
  borderRadius: '$lg',
16453
16453
  maxHeight: 285,
@@ -20952,7 +20952,7 @@ const Container$8 = styled(Flex$1, {
20952
20952
  flexDirection: 'row',
20953
20953
  alignItems: 'center',
20954
20954
  userSelect: 'none',
20955
- border: '1px solid $gray300',
20955
+ border: '1px solid $bgOutline',
20956
20956
  borderRadius: 6,
20957
20957
  '&:hover': {
20958
20958
  border: '1px solid $primary400'
@@ -23841,21 +23841,184 @@ Pagination.propTypes = {
23841
23841
  };
23842
23842
  Pagination.displayName = 'Pagination';
23843
23843
 
23844
- const Trigger = props => {
23845
- return jsx(ContextMenuTrigger$1, Object.assign({}, props, {
23846
- mouseButton: (props === null || props === void 0 ? void 0 : props.triggerSide) === 'left' ? 0 : undefined
23844
+ const menuListeners = new Map();
23845
+ let activeMenuId = null;
23846
+ const subscribeToMenu = (id, listener) => {
23847
+ if (!menuListeners.has(id)) {
23848
+ menuListeners.set(id, new Set());
23849
+ }
23850
+ const listeners = menuListeners.get(id);
23851
+ listeners.add(listener);
23852
+ return () => {
23853
+ listeners.delete(listener);
23854
+ if (listeners.size === 0) {
23855
+ menuListeners.delete(id);
23856
+ }
23857
+ };
23858
+ };
23859
+ const notifyMenu = (id, state) => {
23860
+ const listeners = menuListeners.get(id);
23861
+ if (!listeners) return;
23862
+ listeners.forEach(listener => listener(state));
23863
+ };
23864
+ const openMenu = (id, state) => {
23865
+ if (activeMenuId && activeMenuId !== id) {
23866
+ notifyMenu(activeMenuId, null);
23867
+ }
23868
+ activeMenuId = id;
23869
+ notifyMenu(id, state);
23870
+ };
23871
+ const closeMenu = id => {
23872
+ const targetId = id !== null && id !== void 0 ? id : activeMenuId;
23873
+ if (!targetId) return;
23874
+ notifyMenu(targetId, null);
23875
+ if (activeMenuId === targetId) {
23876
+ activeMenuId = null;
23877
+ }
23878
+ };
23879
+ const composeEventHandlers = (userHandler, ourHandler) => event => {
23880
+ userHandler === null || userHandler === void 0 ? void 0 : userHandler(event);
23881
+ if (event.defaultPrevented) {
23882
+ return;
23883
+ }
23884
+ ourHandler === null || ourHandler === void 0 ? void 0 : ourHandler(event);
23885
+ };
23886
+ const Trigger = _a => {
23887
+ var {
23888
+ id,
23889
+ triggerSide = 'right',
23890
+ children,
23891
+ className,
23892
+ onClick,
23893
+ onContextMenu,
23894
+ style
23895
+ } = _a,
23896
+ rest = __rest(_a, ["id", "triggerSide", "children", "className", "onClick", "onContextMenu", "style"]);
23897
+ const handleOpen = useCallback(event => {
23898
+ openMenu(id, {
23899
+ position: {
23900
+ x: event.clientX,
23901
+ y: event.clientY
23902
+ }
23903
+ });
23904
+ }, [id]);
23905
+ const handleContextMenu = useCallback(event => {
23906
+ if (triggerSide === 'left') return;
23907
+ event.preventDefault();
23908
+ handleOpen(event);
23909
+ }, [handleOpen, triggerSide]);
23910
+ const handleClick = useCallback(event => {
23911
+ if (triggerSide !== 'left') return;
23912
+ handleOpen(event);
23913
+ }, [handleOpen, triggerSide]);
23914
+ return jsx("span", Object.assign({}, rest, {
23915
+ className: className,
23916
+ style: Object.assign({
23917
+ display: 'contents'
23918
+ }, style),
23919
+ onClick: composeEventHandlers(onClick, handleClick),
23920
+ onContextMenu: composeEventHandlers(onContextMenu, handleContextMenu)
23847
23921
  }, {
23848
- children: props === null || props === void 0 ? void 0 : props.children
23922
+ children: children
23849
23923
  }), void 0);
23850
23924
  };
23851
- const Menu = props => {
23852
- return jsx(ContextMenu$1, Object.assign({}, props, {
23853
- children: props === null || props === void 0 ? void 0 : props.children
23854
- }), void 0);
23925
+ const MenuContext = /*#__PURE__*/React__default.createContext(null);
23926
+ const Menu = _a => {
23927
+ var {
23928
+ id,
23929
+ children,
23930
+ className,
23931
+ style
23932
+ } = _a,
23933
+ rest = __rest(_a, ["id", "children", "className", "style"]);
23934
+ const [menuState, setMenuState] = useState(null);
23935
+ const menuRef = useRef(null);
23936
+ useEffect(() => subscribeToMenu(id, setMenuState), [id]);
23937
+ const handleClose = useCallback(() => {
23938
+ closeMenu(id);
23939
+ }, [id]);
23940
+ useEffect(() => {
23941
+ if (!menuState) return;
23942
+ const doc = typeof document !== 'undefined' ? document : null;
23943
+ const win = typeof window !== 'undefined' ? window : null;
23944
+ if (!doc) return;
23945
+ const handlePointerDown = event => {
23946
+ if (!menuRef.current) return;
23947
+ if (event.target instanceof Node && menuRef.current.contains(event.target)) return;
23948
+ handleClose();
23949
+ };
23950
+ const handleScroll = () => handleClose();
23951
+ const handleKeyDown = event => {
23952
+ if (event.key === 'Escape') handleClose();
23953
+ };
23954
+ doc.addEventListener('mousedown', handlePointerDown);
23955
+ doc.addEventListener('touchstart', handlePointerDown);
23956
+ doc.addEventListener('scroll', handleScroll, true);
23957
+ win === null || win === void 0 ? void 0 : win.addEventListener('resize', handleScroll);
23958
+ doc.addEventListener('keydown', handleKeyDown);
23959
+ return () => {
23960
+ doc.removeEventListener('mousedown', handlePointerDown);
23961
+ doc.removeEventListener('touchstart', handlePointerDown);
23962
+ doc.removeEventListener('scroll', handleScroll, true);
23963
+ win === null || win === void 0 ? void 0 : win.removeEventListener('resize', handleScroll);
23964
+ doc.removeEventListener('keydown', handleKeyDown);
23965
+ };
23966
+ }, [menuState, handleClose]);
23967
+ if (!menuState) return null;
23968
+ return jsx(Portal$1, {
23969
+ children: jsx("div", Object.assign({}, rest, {
23970
+ ref: menuRef,
23971
+ className: ['react-contextmenu', className].filter(Boolean).join(' '),
23972
+ style: Object.assign({
23973
+ position: 'fixed',
23974
+ top: menuState.position.y,
23975
+ left: menuState.position.x
23976
+ }, style),
23977
+ role: "menu",
23978
+ "data-state": "open",
23979
+ "data-side": "bottom"
23980
+ }, {
23981
+ children: jsx(MenuContext.Provider, Object.assign({
23982
+ value: {
23983
+ closeMenu: handleClose
23984
+ }
23985
+ }, {
23986
+ children: children
23987
+ }), void 0)
23988
+ }), void 0)
23989
+ }, void 0);
23855
23990
  };
23856
- const Item = props => {
23857
- return jsx(MenuItem, Object.assign({}, props, {
23858
- children: props === null || props === void 0 ? void 0 : props.children
23991
+ const Item = _a => {
23992
+ var {
23993
+ children,
23994
+ data,
23995
+ onClick,
23996
+ className,
23997
+ onKeyDown
23998
+ } = _a,
23999
+ rest = __rest(_a, ["children", "data", "onClick", "className", "onKeyDown"]);
24000
+ const menuContext = React__default.useContext(MenuContext);
24001
+ const handleSelect = useCallback(event => {
24002
+ onClick === null || onClick === void 0 ? void 0 : onClick(event, data);
24003
+ menuContext === null || menuContext === void 0 ? void 0 : menuContext.closeMenu();
24004
+ }, [data, menuContext, onClick]);
24005
+ const handleKeyDown = useCallback(event => {
24006
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
24007
+ if (event.defaultPrevented) return;
24008
+ if (event.key === 'Enter' || event.key === ' ') {
24009
+ event.preventDefault();
24010
+ onClick === null || onClick === void 0 ? void 0 : onClick(event, data);
24011
+ menuContext === null || menuContext === void 0 ? void 0 : menuContext.closeMenu();
24012
+ }
24013
+ }, [data, menuContext, onClick, onKeyDown]);
24014
+ return jsx("div", Object.assign({}, rest, {
24015
+ className: className,
24016
+ role: "menuitem",
24017
+ tabIndex: 0,
24018
+ onClick: handleSelect,
24019
+ onKeyDown: handleKeyDown
24020
+ }, {
24021
+ children: children
23859
24022
  }), void 0);
23860
24023
  };
23861
24024
  const slideUpAndFade$1 = keyframes({
@@ -30768,7 +30931,10 @@ const Upload = ({
30768
30931
  function renderCropper() {
30769
30932
  return /*#__PURE__*/React__default.createElement(ModalDialog, {
30770
30933
  onOpenChange: open => {
30771
- if (!open) setCrop(null);
30934
+ if (!open) {
30935
+ setCrop(null);
30936
+ if (hiddenFileInput) hiddenFileInput.current.value = null;
30937
+ }
30772
30938
  },
30773
30939
  isMobile: isMobile,
30774
30940
  theme: theme,
@@ -30783,7 +30949,7 @@ const Upload = ({
30783
30949
  __self: this,
30784
30950
  __source: {
30785
30951
  fileName: _jsxFileName$9,
30786
- lineNumber: 844,
30952
+ lineNumber: 847,
30787
30953
  columnNumber: 9
30788
30954
  }
30789
30955
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -30791,7 +30957,7 @@ const Upload = ({
30791
30957
  __self: this,
30792
30958
  __source: {
30793
30959
  fileName: _jsxFileName$9,
30794
- lineNumber: 845,
30960
+ lineNumber: 848,
30795
30961
  columnNumber: 11
30796
30962
  }
30797
30963
  })), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
@@ -30804,7 +30970,7 @@ const Upload = ({
30804
30970
  __self: this,
30805
30971
  __source: {
30806
30972
  fileName: _jsxFileName$9,
30807
- lineNumber: 847,
30973
+ lineNumber: 850,
30808
30974
  columnNumber: 9
30809
30975
  }
30810
30976
  }, cropperTitle || t('cropperTitle', 'Potong Gambar')), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
@@ -30817,7 +30983,7 @@ const Upload = ({
30817
30983
  __self: this,
30818
30984
  __source: {
30819
30985
  fileName: _jsxFileName$9,
30820
- lineNumber: 850,
30986
+ lineNumber: 853,
30821
30987
  columnNumber: 9
30822
30988
  }
30823
30989
  }, /*#__PURE__*/React__default.createElement(ReactCrop, {
@@ -30828,7 +30994,7 @@ const Upload = ({
30828
30994
  __self: this,
30829
30995
  __source: {
30830
30996
  fileName: _jsxFileName$9,
30831
- lineNumber: 858,
30997
+ lineNumber: 861,
30832
30998
  columnNumber: 11
30833
30999
  }
30834
31000
  }, /*#__PURE__*/React__default.createElement(Image, {
@@ -30842,14 +31008,14 @@ const Upload = ({
30842
31008
  __self: this,
30843
31009
  __source: {
30844
31010
  fileName: _jsxFileName$9,
30845
- lineNumber: 859,
31011
+ lineNumber: 862,
30846
31012
  columnNumber: 13
30847
31013
  }
30848
31014
  }))), /*#__PURE__*/React__default.createElement(ModalDialogFooter, {
30849
31015
  __self: this,
30850
31016
  __source: {
30851
31017
  fileName: _jsxFileName$9,
30852
- lineNumber: 870,
31018
+ lineNumber: 873,
30853
31019
  columnNumber: 9
30854
31020
  }
30855
31021
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -30861,14 +31027,14 @@ const Upload = ({
30861
31027
  __self: this,
30862
31028
  __source: {
30863
31029
  fileName: _jsxFileName$9,
30864
- lineNumber: 871,
31030
+ lineNumber: 874,
30865
31031
  columnNumber: 11
30866
31032
  }
30867
31033
  }, hiddenToggleAspect ? /*#__PURE__*/React__default.createElement(Box, {
30868
31034
  __self: this,
30869
31035
  __source: {
30870
31036
  fileName: _jsxFileName$9,
30871
- lineNumber: 873,
31037
+ lineNumber: 876,
30872
31038
  columnNumber: 15
30873
31039
  }
30874
31040
  }) : /*#__PURE__*/React__default.createElement(Tooltip$1, {
@@ -30876,7 +31042,7 @@ const Upload = ({
30876
31042
  __self: this,
30877
31043
  __source: {
30878
31044
  fileName: _jsxFileName$9,
30879
- lineNumber: 875,
31045
+ lineNumber: 878,
30880
31046
  columnNumber: 15
30881
31047
  }
30882
31048
  }, /*#__PURE__*/React__default.createElement(ImageOutline, {
@@ -30888,7 +31054,7 @@ const Upload = ({
30888
31054
  __self: this,
30889
31055
  __source: {
30890
31056
  fileName: _jsxFileName$9,
30891
- lineNumber: 876,
31057
+ lineNumber: 879,
30892
31058
  columnNumber: 17
30893
31059
  }
30894
31060
  })), /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -30896,7 +31062,7 @@ const Upload = ({
30896
31062
  __self: this,
30897
31063
  __source: {
30898
31064
  fileName: _jsxFileName$9,
30899
- lineNumber: 883,
31065
+ lineNumber: 886,
30900
31066
  columnNumber: 13
30901
31067
  }
30902
31068
  }, /*#__PURE__*/React__default.createElement(Button$4, {
@@ -30905,7 +31071,7 @@ const Upload = ({
30905
31071
  __self: this,
30906
31072
  __source: {
30907
31073
  fileName: _jsxFileName$9,
30908
- lineNumber: 884,
31074
+ lineNumber: 887,
30909
31075
  columnNumber: 15
30910
31076
  }
30911
31077
  }, t('label.cancel', 'Batal', {
@@ -30915,7 +31081,7 @@ const Upload = ({
30915
31081
  __self: this,
30916
31082
  __source: {
30917
31083
  fileName: _jsxFileName$9,
30918
- lineNumber: 887,
31084
+ lineNumber: 890,
30919
31085
  columnNumber: 15
30920
31086
  }
30921
31087
  }, t('save', 'Simpan', {
@@ -30932,7 +31098,7 @@ const Upload = ({
30932
31098
  __self: undefined,
30933
31099
  __source: {
30934
31100
  fileName: _jsxFileName$9,
30935
- lineNumber: 896,
31101
+ lineNumber: 899,
30936
31102
  columnNumber: 5
30937
31103
  }
30938
31104
  }, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default.createElement(UploadProgress, {
@@ -30941,7 +31107,7 @@ const Upload = ({
30941
31107
  __self: undefined,
30942
31108
  __source: {
30943
31109
  fileName: _jsxFileName$9,
30944
- lineNumber: 899,
31110
+ lineNumber: 902,
30945
31111
  columnNumber: 32
30946
31112
  }
30947
31113
  }) : renderUpload(), showCropper && renderCropper(), /*#__PURE__*/React__default.createElement(Input$2, {
@@ -30953,7 +31119,7 @@ const Upload = ({
30953
31119
  __self: undefined,
30954
31120
  __source: {
30955
31121
  fileName: _jsxFileName$9,
30956
- lineNumber: 901,
31122
+ lineNumber: 904,
30957
31123
  columnNumber: 7
30958
31124
  }
30959
31125
  }));
@@ -56352,7 +56518,7 @@ function seqNumberVariants(variantFn, max) {
56352
56518
  const Container$1 = styled('div', {
56353
56519
  width: 460,
56354
56520
  '& > .wrapper-root > .toolbar-root': {
56355
- border: '1px solid $gray300',
56521
+ border: '1px solid $bgOutline',
56356
56522
  borderRadius: 8,
56357
56523
  backgroundColor: '$bgWhite'
56358
56524
  },
@@ -56382,7 +56548,7 @@ const Container$1 = styled('div', {
56382
56548
  backgroundColor: '$gray100 !important'
56383
56549
  },
56384
56550
  '& > .wrapper-root > .editor-root': {
56385
- border: '1px solid $gray300',
56551
+ border: '1px solid $bgOutline',
56386
56552
  borderRadius: 8,
56387
56553
  backgroundColor: '$bgWhite',
56388
56554
  padding: '$spacing-05',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.61.21",
3
+ "version": "1.61.22",
4
4
  "main": "./index.esm.js",
5
5
  "exports": {
6
6
  ".": {
@@ -19,9 +19,9 @@
19
19
  "@floating-ui/react": "^0.19.2",
20
20
  "@floating-ui/react-dom": "^1.3.0",
21
21
  "@hookform/resolvers": "^2.8.10",
22
- "@majoo-ui/core": "1.31.7",
22
+ "@majoo-ui/core": "1.31.8",
23
23
  "@majoo-ui/helpers": "1.30.7",
24
- "@majoo-ui/icons": "1.38.40",
24
+ "@majoo-ui/icons": "1.38.43",
25
25
  "@monsonjeremy/react-leaflet": "^3.2.2",
26
26
  "@radix-ui/react-accordion": "^1.0.0",
27
27
  "@radix-ui/react-alert-dialog": "^1.0.3",
@@ -60,7 +60,6 @@
60
60
  "otp-input-react": "^0.3.0",
61
61
  "prismjs": "^1.28.0",
62
62
  "react-color": "^2.19.3",
63
- "react-contextmenu": "^2.14.0",
64
63
  "react-draft-wysiwyg": "^1.15.0",
65
64
  "react-hook-form": "^7.31.3",
66
65
  "react-i18next": "^12.0.0",
@@ -78,11 +77,5 @@
78
77
  "recharts": "^2.1.9",
79
78
  "axios": "1.6.0",
80
79
  "yup": "^0.32.11"
81
- },
82
- "overrides": {
83
- "react-contextmenu": {
84
- "react": "$react",
85
- "react-dom": "$react-dom"
86
- }
87
80
  }
88
81
  }