@majoo-ui/react 1.60.20 → 1.60.21-rc.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 CHANGED
@@ -5,8 +5,8 @@ import { createStitches, styled as styled$1 } from '@stitches/react';
5
5
  import { foundations } from '@majoo-ui/core';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import moment from 'moment';
8
- import { CloseOutline, UserFilled, CircleQuestionOutline, CircleInfoOutline, SearchOutline, CloseFilled, CaretDownOutline, ChevronUpOutline, ChevronDownOutline, CirclePlusOutline, SortingOutline, MinusOutline, PlusOutline, ChevronLeftOutline, ChevronRightOutline, TimeOutline, CalendarOutline, ChevronLgLeftOutline, ChevronLgRightOutline, ArrowLeftOutline, ArrowRightOutline, PlusPrimitive, EllipsisHorizontalOutline, EyeOutline, UploadOutline, ImageOutline, ChevronUpDownOutline, CheckFilled, RemoveOutline, LocationOutline } from '@majoo-ui/icons';
9
8
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
+ import { CloseOutline, UserFilled, CircleQuestionOutline, CircleInfoOutline, SearchOutline, CloseFilled, CaretDownOutline, ChevronUpOutline, ChevronDownOutline, CirclePlusOutline, SortingOutline, MinusOutline, PlusOutline, ChevronLeftOutline, ChevronRightOutline, TimeOutline, CalendarOutline, ChevronLgLeftOutline, ChevronLgRightOutline, ArrowLeftOutline, ArrowRightOutline, PlusPrimitive, EllipsisHorizontalOutline, EyeOutline, UploadOutline, ImageOutline, ChevronUpDownOutline, CheckFilled, RemoveOutline, LocationOutline } from '@majoo-ui/icons';
10
10
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
11
11
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
12
12
  import * as ProgressPrimitive from '@radix-ui/react-progress';
@@ -54,7 +54,7 @@ import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
54
54
  import imageCompressionComponent from 'browser-image-compression';
55
55
  import { useSticky } from 'react-table-sticky';
56
56
 
57
- var _jsxFileName$12 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
57
+ var _jsxFileName$$ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
58
58
  function ThemeProvider({
59
59
  theme,
60
60
  children
@@ -63,7 +63,7 @@ function ThemeProvider({
63
63
  className: theme,
64
64
  __self: this,
65
65
  __source: {
66
- fileName: _jsxFileName$12,
66
+ fileName: _jsxFileName$$,
67
67
  lineNumber: 5,
68
68
  columnNumber: 10
69
69
  }
@@ -1387,7 +1387,7 @@ const applyGlobalStyles = additionaStyles => {
1387
1387
  globalStyles();
1388
1388
  };
1389
1389
 
1390
- var _jsxFileName$11 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
1390
+ var _jsxFileName$_ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
1391
1391
  function MajooProvider({
1392
1392
  children,
1393
1393
  theme: theme$1 = theme,
@@ -1403,7 +1403,7 @@ function MajooProvider({
1403
1403
  theme: theme$1,
1404
1404
  __self: this,
1405
1405
  __source: {
1406
- fileName: _jsxFileName$11,
1406
+ fileName: _jsxFileName$_,
1407
1407
  lineNumber: 14,
1408
1408
  columnNumber: 5
1409
1409
  }
@@ -1517,25 +1517,27 @@ const Flex$1 = styled('div', {
1517
1517
  gap: `$spacing-${value < 10 ? '0' + value : value}`
1518
1518
  }), 12),
1519
1519
  m: seqNumberVariants$1(value => ({
1520
- m: `$spacing-${value < 10 ? '0' + value : value}`
1520
+ margin: `$spacing-${value < 10 ? '0' + value : value}`
1521
1521
  }), 12),
1522
1522
  mt: seqNumberVariants$1(value => ({
1523
- mt: `$spacing-${value < 10 ? '0' + value : value}`
1523
+ marginTop: `$spacing-${value < 10 ? '0' + value : value}`
1524
1524
  }), 12),
1525
1525
  mb: seqNumberVariants$1(value => ({
1526
- mb: `$spacing-${value < 10 ? '0' + value : value}`
1526
+ marginBottom: `$spacing-${value < 10 ? '0' + value : value}`
1527
1527
  }), 12),
1528
1528
  mr: seqNumberVariants$1(value => ({
1529
- mr: `$spacing-${value < 10 ? '0' + value : value}`
1529
+ marginRight: `$spacing-${value < 10 ? '0' + value : value}`
1530
1530
  }), 12),
1531
1531
  ml: seqNumberVariants$1(value => ({
1532
- ml: `$spacing-${value < 10 ? '0' + value : value}`
1532
+ marginLeft: `$spacing-${value < 10 ? '0' + value : value}`
1533
1533
  }), 12),
1534
1534
  mx: seqNumberVariants$1(value => ({
1535
- mx: `$spacing-${value < 10 ? '0' + value : value}`
1535
+ marginRight: `$spacing-${value < 10 ? '0' + value : value}`,
1536
+ marginLeft: `$spacing-${value < 10 ? '0' + value : value}`
1536
1537
  }), 12),
1537
1538
  my: seqNumberVariants$1(value => ({
1538
- my: `$spacing-${value < 10 ? '0' + value : value}`
1539
+ marginTop: `$spacing-${value < 10 ? '0' + value : value}`,
1540
+ marginBottom: `$spacing-${value < 10 ? '0' + value : value}`
1539
1541
  }), 12),
1540
1542
  mobileOnly: {
1541
1543
  true: {
@@ -1554,54 +1556,56 @@ const Flex$1 = styled('div', {
1554
1556
  }
1555
1557
  }
1556
1558
  });
1557
- Flex$1.propTypes = {
1558
- direction: PropTypes.string,
1559
- align: PropTypes.string,
1560
- justify: PropTypes.string,
1561
- wrap: PropTypes.string,
1562
- gap: PropTypes.number,
1563
- m: PropTypes.number,
1564
- mt: PropTypes.number,
1565
- mb: PropTypes.number,
1566
- mr: PropTypes.number,
1567
- ml: PropTypes.number,
1568
- mx: PropTypes.number,
1569
- my: PropTypes.number
1570
- };
1571
1559
  Flex$1.defaultProps = {
1572
1560
  direction: 'row',
1573
1561
  align: 'stretch',
1574
1562
  justify: 'start',
1575
- wrap: 'noWrap',
1576
- gap: 0
1563
+ wrap: 'noWrap'
1577
1564
  };
1578
1565
  Flex$1.displayName = 'Flex';
1579
1566
 
1580
- function _extends() {
1581
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
1582
- for (var e = 1; e < arguments.length; e++) {
1583
- var t = arguments[e];
1584
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1585
- }
1586
- return n;
1587
- }, _extends.apply(null, arguments);
1588
- }
1589
- function _objectDestructuringEmpty(t) {
1590
- if (null == t) throw new TypeError("Cannot destructure " + t);
1591
- }
1592
- function _objectWithoutPropertiesLoose(r, e) {
1593
- if (null == r) return {};
1594
- var t = {};
1595
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1596
- if (e.includes(n)) continue;
1597
- t[n] = r[n];
1598
- }
1599
- return t;
1600
- }
1567
+ /******************************************************************************
1568
+ Copyright (c) Microsoft Corporation.
1569
+
1570
+ Permission to use, copy, modify, and/or distribute this software for any
1571
+ purpose with or without fee is hereby granted.
1572
+
1573
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1574
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1575
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1576
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1577
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1578
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1579
+ PERFORMANCE OF THIS SOFTWARE.
1580
+ ***************************************************************************** */
1581
+
1582
+ function __rest(s, e) {
1583
+ var t = {};
1584
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1585
+ t[p] = s[p];
1586
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1587
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1588
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1589
+ t[p[i]] = s[p[i]];
1590
+ }
1591
+ return t;
1592
+ }
1593
+
1594
+ function __awaiter(thisArg, _arguments, P, generator) {
1595
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1596
+ return new (P || (P = Promise))(function (resolve, reject) {
1597
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1598
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1599
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1600
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1601
+ });
1602
+ }
1603
+
1604
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1605
+ var e = new Error(message);
1606
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1607
+ };
1601
1608
 
1602
- const _excluded$B = ["children"],
1603
- _excluded2$4 = ["children"];
1604
- var _jsxFileName$10 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/grid/Grid.js";
1605
1609
  const GridComponent = styled('div', {
1606
1610
  display: 'grid',
1607
1611
  variants: {
@@ -1786,25 +1790,21 @@ const GridComponent = styled('div', {
1786
1790
  }
1787
1791
  }
1788
1792
  });
1789
- const Grid = _ref => {
1790
- let {
1793
+ const Grid = _a => {
1794
+ var {
1791
1795
  children
1792
- } = _ref,
1793
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1794
- return /*#__PURE__*/React__default.createElement(GridComponent, _extends({}, props, {
1795
- css: Object.assign({}, props.css, {
1796
+ } = _a,
1797
+ props = __rest(_a, ["children"]);
1798
+ return jsx(GridComponent, Object.assign({}, props, {
1799
+ css: Object.assign(Object.assign({}, props.css), {
1796
1800
  gridAutoColumns: props.autoColumns,
1797
1801
  gridAutoRows: props.autoRows,
1798
1802
  gridTemplateColumns: props.templateColumns,
1799
1803
  gridTemplateRows: props.templateRows
1800
- }),
1801
- __self: undefined,
1802
- __source: {
1803
- fileName: _jsxFileName$10,
1804
- lineNumber: 200,
1805
- columnNumber: 5
1806
- }
1807
- }), children);
1804
+ })
1805
+ }, {
1806
+ children: children
1807
+ }), void 0);
1808
1808
  };
1809
1809
  Grid.propTypes = {
1810
1810
  align: PropTypes.string,
@@ -1838,26 +1838,22 @@ const GridItemComponent = styled('div', {
1838
1838
  }), 10))
1839
1839
  }
1840
1840
  });
1841
- const GridItem = _ref2 => {
1842
- let {
1841
+ const GridItem = _a => {
1842
+ var {
1843
1843
  children
1844
- } = _ref2,
1845
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
1846
- return /*#__PURE__*/React__default.createElement(GridItemComponent, _extends({}, props, {
1847
- css: Object.assign({}, props.css, {
1844
+ } = _a,
1845
+ props = __rest(_a, ["children"]);
1846
+ return jsx(GridItemComponent, Object.assign({}, props, {
1847
+ css: Object.assign(Object.assign({}, props.css), {
1848
1848
  gridArea: props.area,
1849
1849
  gridColumnStart: props.colStart,
1850
1850
  gridColumnEnd: props.colEnd,
1851
1851
  gridRowStart: props.rowStart,
1852
1852
  gridRowEnd: props.rowEnd
1853
- }),
1854
- __self: undefined,
1855
- __source: {
1856
- fileName: _jsxFileName$10,
1857
- lineNumber: 265,
1858
- columnNumber: 5
1859
- }
1860
- }), children);
1853
+ })
1854
+ }, {
1855
+ children: children
1856
+ }), void 0);
1861
1857
  };
1862
1858
  GridItem.propTypes = {
1863
1859
  gridArea: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
@@ -1870,8 +1866,30 @@ GridItem.propTypes = {
1870
1866
  };
1871
1867
  GridItem.displayName = 'Grid Item';
1872
1868
 
1873
- const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
1874
- var _jsxFileName$$ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
1869
+ function _extends() {
1870
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
1871
+ for (var e = 1; e < arguments.length; e++) {
1872
+ var t = arguments[e];
1873
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1874
+ }
1875
+ return n;
1876
+ }, _extends.apply(null, arguments);
1877
+ }
1878
+ function _objectDestructuringEmpty(t) {
1879
+ if (null == t) throw new TypeError("Cannot destructure " + t);
1880
+ }
1881
+ function _objectWithoutPropertiesLoose(r, e) {
1882
+ if (null == r) return {};
1883
+ var t = {};
1884
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1885
+ if (e.includes(n)) continue;
1886
+ t[n] = r[n];
1887
+ }
1888
+ return t;
1889
+ }
1890
+
1891
+ const _excluded$y = ["children", "isCollapse", "css", "contentHeader"];
1892
+ var _jsxFileName$Z = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
1875
1893
  const StyledDiv$2 = styled(Flex$1, {
1876
1894
  justifyContent: 'center',
1877
1895
  marginLeft: 'auto',
@@ -1914,7 +1932,7 @@ const PageContainer = _ref => {
1914
1932
  css,
1915
1933
  contentHeader
1916
1934
  } = _ref,
1917
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1935
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
1918
1936
  return /*#__PURE__*/React__default.createElement(StyledDiv$2, _extends({
1919
1937
  id: "retina-container",
1920
1938
  css: Object.assign({
@@ -1923,7 +1941,7 @@ const PageContainer = _ref => {
1923
1941
  }, props, {
1924
1942
  __self: undefined,
1925
1943
  __source: {
1926
- fileName: _jsxFileName$$,
1944
+ fileName: _jsxFileName$Z,
1927
1945
  lineNumber: 43,
1928
1946
  columnNumber: 5
1929
1947
  }
@@ -2282,48 +2300,6 @@ Paragraph.defaultProps = {
2282
2300
  };
2283
2301
  Paragraph.displayName = 'Paragraph';
2284
2302
 
2285
- /******************************************************************************
2286
- Copyright (c) Microsoft Corporation.
2287
-
2288
- Permission to use, copy, modify, and/or distribute this software for any
2289
- purpose with or without fee is hereby granted.
2290
-
2291
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2292
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2293
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2294
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2295
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2296
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2297
- PERFORMANCE OF THIS SOFTWARE.
2298
- ***************************************************************************** */
2299
-
2300
- function __rest(s, e) {
2301
- var t = {};
2302
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2303
- t[p] = s[p];
2304
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
2305
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2306
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2307
- t[p[i]] = s[p[i]];
2308
- }
2309
- return t;
2310
- }
2311
-
2312
- function __awaiter(thisArg, _arguments, P, generator) {
2313
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2314
- return new (P || (P = Promise))(function (resolve, reject) {
2315
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2316
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2317
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2318
- step((generator = generator.apply(thisArg, _arguments || [])).next());
2319
- });
2320
- }
2321
-
2322
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2323
- var e = new Error(message);
2324
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2325
- };
2326
-
2327
2303
  const StyledLink = styled('a', {
2328
2304
  fontSize: '$short-content-regular',
2329
2305
  textDecoration: 'underline',
@@ -2377,8 +2353,8 @@ const Link = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
2377
2353
  }), void 0);
2378
2354
  });
2379
2355
 
2380
- const _excluded$z = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2381
- var _jsxFileName$_ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/banner/Banner.js";
2356
+ const _excluded$x = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2357
+ var _jsxFileName$Y = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/banner/Banner.js";
2382
2358
  const Context$2 = /*#__PURE__*/React.createContext();
2383
2359
  const StyledBanner = styled(Flex$1, {
2384
2360
  maxWidth: '100%',
@@ -2480,7 +2456,7 @@ const BannerTitle = props => /*#__PURE__*/React.createElement(Title$2, _extends(
2480
2456
  }, props, {
2481
2457
  __self: undefined,
2482
2458
  __source: {
2483
- fileName: _jsxFileName$_,
2459
+ fileName: _jsxFileName$Y,
2484
2460
  lineNumber: 111,
2485
2461
  columnNumber: 3
2486
2462
  }
@@ -2501,7 +2477,7 @@ const BannerDescription = props => /*#__PURE__*/React.createElement(Description,
2501
2477
  }, props, {
2502
2478
  __self: undefined,
2503
2479
  __source: {
2504
- fileName: _jsxFileName$_,
2480
+ fileName: _jsxFileName$Y,
2505
2481
  lineNumber: 128,
2506
2482
  columnNumber: 3
2507
2483
  }
@@ -2537,7 +2513,7 @@ const BannerLink = ({
2537
2513
  return /*#__PURE__*/React.createElement(Context$2.Consumer, {
2538
2514
  __self: undefined,
2539
2515
  __source: {
2540
- fileName: _jsxFileName$_,
2516
+ fileName: _jsxFileName$Y,
2541
2517
  lineNumber: 159,
2542
2518
  columnNumber: 5
2543
2519
  }
@@ -2549,7 +2525,7 @@ const BannerLink = ({
2549
2525
  color: variant ? generateVariant(variant) : generateVariant(value.variant),
2550
2526
  __self: undefined,
2551
2527
  __source: {
2552
- fileName: _jsxFileName$_,
2528
+ fileName: _jsxFileName$Y,
2553
2529
  lineNumber: 161,
2554
2530
  columnNumber: 9
2555
2531
  }
@@ -2575,7 +2551,7 @@ BannerLink.defaultProps = {
2575
2551
  const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
2576
2552
  __self: undefined,
2577
2553
  __source: {
2578
- fileName: _jsxFileName$_,
2554
+ fileName: _jsxFileName$Y,
2579
2555
  lineNumber: 193,
2580
2556
  columnNumber: 3
2581
2557
  }
@@ -2587,7 +2563,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
2587
2563
  },
2588
2564
  __self: undefined,
2589
2565
  __source: {
2590
- fileName: _jsxFileName$_,
2566
+ fileName: _jsxFileName$Y,
2591
2567
  lineNumber: 195,
2592
2568
  columnNumber: 7
2593
2569
  }
@@ -2596,7 +2572,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
2596
2572
  size: "16px",
2597
2573
  __self: undefined,
2598
2574
  __source: {
2599
- fileName: _jsxFileName$_,
2575
+ fileName: _jsxFileName$Y,
2600
2576
  lineNumber: 202,
2601
2577
  columnNumber: 9
2602
2578
  }
@@ -2607,14 +2583,14 @@ const SingleTagBanner = props => {
2607
2583
  direction: "column",
2608
2584
  __self: undefined,
2609
2585
  __source: {
2610
- fileName: _jsxFileName$_,
2586
+ fileName: _jsxFileName$Y,
2611
2587
  lineNumber: 210,
2612
2588
  columnNumber: 5
2613
2589
  }
2614
2590
  }, /*#__PURE__*/React.createElement(Flex$1, {
2615
2591
  __self: undefined,
2616
2592
  __source: {
2617
- fileName: _jsxFileName$_,
2593
+ fileName: _jsxFileName$Y,
2618
2594
  lineNumber: 211,
2619
2595
  columnNumber: 7
2620
2596
  }
@@ -2623,7 +2599,7 @@ const SingleTagBanner = props => {
2623
2599
  direction: "row",
2624
2600
  __self: undefined,
2625
2601
  __source: {
2626
- fileName: _jsxFileName$_,
2602
+ fileName: _jsxFileName$Y,
2627
2603
  lineNumber: 212,
2628
2604
  columnNumber: 9
2629
2605
  }
@@ -2633,7 +2609,7 @@ const SingleTagBanner = props => {
2633
2609
  },
2634
2610
  __self: undefined,
2635
2611
  __source: {
2636
- fileName: _jsxFileName$_,
2612
+ fileName: _jsxFileName$Y,
2637
2613
  lineNumber: 213,
2638
2614
  columnNumber: 27
2639
2615
  }
@@ -2646,21 +2622,21 @@ const SingleTagBanner = props => {
2646
2622
  },
2647
2623
  __self: undefined,
2648
2624
  __source: {
2649
- fileName: _jsxFileName$_,
2625
+ fileName: _jsxFileName$Y,
2650
2626
  lineNumber: 214,
2651
2627
  columnNumber: 11
2652
2628
  }
2653
2629
  }, props.title && /*#__PURE__*/React.createElement(BannerTitle, {
2654
2630
  __self: undefined,
2655
2631
  __source: {
2656
- fileName: _jsxFileName$_,
2632
+ fileName: _jsxFileName$Y,
2657
2633
  lineNumber: 222,
2658
2634
  columnNumber: 29
2659
2635
  }
2660
2636
  }, props.title), props.description && /*#__PURE__*/React.createElement(BannerDescription, {
2661
2637
  __self: undefined,
2662
2638
  __source: {
2663
- fileName: _jsxFileName$_,
2639
+ fileName: _jsxFileName$Y,
2664
2640
  lineNumber: 223,
2665
2641
  columnNumber: 35
2666
2642
  }
@@ -2673,7 +2649,7 @@ const SingleTagBanner = props => {
2673
2649
  closeCenter: !props.title && !props.link,
2674
2650
  __self: undefined,
2675
2651
  __source: {
2676
- fileName: _jsxFileName$_,
2652
+ fileName: _jsxFileName$Y,
2677
2653
  lineNumber: 226,
2678
2654
  columnNumber: 9
2679
2655
  }
@@ -2682,7 +2658,7 @@ const SingleTagBanner = props => {
2682
2658
  size: "16px",
2683
2659
  __self: undefined,
2684
2660
  __source: {
2685
- fileName: _jsxFileName$_,
2661
+ fileName: _jsxFileName$Y,
2686
2662
  lineNumber: 234,
2687
2663
  columnNumber: 11
2688
2664
  }
@@ -2695,7 +2671,7 @@ const SingleTagBanner = props => {
2695
2671
  variant: props.variant,
2696
2672
  __self: undefined,
2697
2673
  __source: {
2698
- fileName: _jsxFileName$_,
2674
+ fileName: _jsxFileName$Y,
2699
2675
  lineNumber: 238,
2700
2676
  columnNumber: 9
2701
2677
  }
@@ -2714,7 +2690,7 @@ const Banner = _ref => {
2714
2690
  bannerBlock,
2715
2691
  icon
2716
2692
  } = _ref,
2717
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
2693
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$x);
2718
2694
  return /*#__PURE__*/React.createElement(StyledBanner, _extends({
2719
2695
  variant: variant,
2720
2696
  hasAction: !!onClick,
@@ -2723,7 +2699,7 @@ const Banner = _ref => {
2723
2699
  }, rest, {
2724
2700
  __self: undefined,
2725
2701
  __source: {
2726
- fileName: _jsxFileName$_,
2702
+ fileName: _jsxFileName$Y,
2727
2703
  lineNumber: 260,
2728
2704
  columnNumber: 5
2729
2705
  }
@@ -2740,7 +2716,7 @@ const Banner = _ref => {
2740
2716
  },
2741
2717
  __self: undefined,
2742
2718
  __source: {
2743
- fileName: _jsxFileName$_,
2719
+ fileName: _jsxFileName$Y,
2744
2720
  lineNumber: 262,
2745
2721
  columnNumber: 9
2746
2722
  }
@@ -2751,7 +2727,7 @@ const Banner = _ref => {
2751
2727
  },
2752
2728
  __self: undefined,
2753
2729
  __source: {
2754
- fileName: _jsxFileName$_,
2730
+ fileName: _jsxFileName$Y,
2755
2731
  lineNumber: 269,
2756
2732
  columnNumber: 11
2757
2733
  }
@@ -2766,7 +2742,7 @@ const Banner = _ref => {
2766
2742
  onRemove: onRemove,
2767
2743
  __self: undefined,
2768
2744
  __source: {
2769
- fileName: _jsxFileName$_,
2745
+ fileName: _jsxFileName$Y,
2770
2746
  lineNumber: 272,
2771
2747
  columnNumber: 9
2772
2748
  }
@@ -3371,8 +3347,8 @@ Card.defaultProps = {
3371
3347
  Card.Label = StyledLabel$2;
3372
3348
  Card.Description = StyledDescription$3;
3373
3349
 
3374
- const _excluded$y = ["children"];
3375
- var _jsxFileName$Z = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
3350
+ const _excluded$w = ["children"];
3351
+ var _jsxFileName$X = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
3376
3352
  const BreadcrumbStyle = styled('nav', {
3377
3353
  wordWrap: 'break-word',
3378
3354
  '& li+li:before': {
@@ -3417,7 +3393,7 @@ const BreadcrumbLinkBase = props => {
3417
3393
  return /*#__PURE__*/React__default.createElement(BreadcrumbLinkStyle, _extends({}, props, aria, {
3418
3394
  __self: undefined,
3419
3395
  __source: {
3420
- fileName: _jsxFileName$Z,
3396
+ fileName: _jsxFileName$X,
3421
3397
  lineNumber: 42,
3422
3398
  columnNumber: 10
3423
3399
  }
@@ -3427,19 +3403,19 @@ const BreadcrumbBase = _ref => {
3427
3403
  let {
3428
3404
  children
3429
3405
  } = _ref,
3430
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
3406
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$w);
3431
3407
  return /*#__PURE__*/React__default.createElement(BreadcrumbStyle, _extends({}, rest, {
3432
3408
  "aria-label": "breadcrumb",
3433
3409
  __self: undefined,
3434
3410
  __source: {
3435
- fileName: _jsxFileName$Z,
3411
+ fileName: _jsxFileName$X,
3436
3412
  lineNumber: 47,
3437
3413
  columnNumber: 5
3438
3414
  }
3439
3415
  }), /*#__PURE__*/React__default.createElement(Ol, {
3440
3416
  __self: undefined,
3441
3417
  __source: {
3442
- fileName: _jsxFileName$Z,
3418
+ fileName: _jsxFileName$X,
3443
3419
  lineNumber: 48,
3444
3420
  columnNumber: 7
3445
3421
  }
@@ -3691,8 +3667,8 @@ Badge.defaultProps = {
3691
3667
  };
3692
3668
  Badge.displayName = 'Badge';
3693
3669
 
3694
- const _excluded$x = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3695
- var _jsxFileName$Y = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/avatar/Avatar.js";
3670
+ const _excluded$v = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3671
+ var _jsxFileName$W = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/avatar/Avatar.js";
3696
3672
  const StyledAvatar = styled(AvatarPrimitive.Root, {
3697
3673
  width: '32px',
3698
3674
  height: '32px',
@@ -3736,7 +3712,7 @@ function Avatar(_ref) {
3736
3712
  onClick,
3737
3713
  css
3738
3714
  } = _ref,
3739
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
3715
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
3740
3716
  return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends({
3741
3717
  className: className,
3742
3718
  onClick: onClick,
@@ -3744,7 +3720,7 @@ function Avatar(_ref) {
3744
3720
  }, props, {
3745
3721
  __self: this,
3746
3722
  __source: {
3747
- fileName: _jsxFileName$Y,
3723
+ fileName: _jsxFileName$W,
3748
3724
  lineNumber: 46,
3749
3725
  columnNumber: 5
3750
3726
  }
@@ -3754,7 +3730,7 @@ function Avatar(_ref) {
3754
3730
  onLoadingStatusChange: onLoadingStatusChange,
3755
3731
  __self: this,
3756
3732
  __source: {
3757
- fileName: _jsxFileName$Y,
3733
+ fileName: _jsxFileName$W,
3758
3734
  lineNumber: 47,
3759
3735
  columnNumber: 21
3760
3736
  }
@@ -3762,21 +3738,21 @@ function Avatar(_ref) {
3762
3738
  delayMs: delayMs,
3763
3739
  __self: this,
3764
3740
  __source: {
3765
- fileName: _jsxFileName$Y,
3741
+ fileName: _jsxFileName$W,
3766
3742
  lineNumber: 48,
3767
3743
  columnNumber: 7
3768
3744
  }
3769
3745
  }, children !== undefined ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(StyledIcon, {
3770
3746
  __self: this,
3771
3747
  __source: {
3772
- fileName: _jsxFileName$Y,
3748
+ fileName: _jsxFileName$W,
3773
3749
  lineNumber: 52,
3774
3750
  columnNumber: 11
3775
3751
  }
3776
3752
  }, /*#__PURE__*/React__default.createElement(UserFilled, {
3777
3753
  __self: this,
3778
3754
  __source: {
3779
- fileName: _jsxFileName$Y,
3755
+ fileName: _jsxFileName$W,
3780
3756
  lineNumber: 53,
3781
3757
  columnNumber: 13
3782
3758
  }
@@ -3793,8 +3769,8 @@ Avatar.defaultProps = {
3793
3769
  delayMs: 0
3794
3770
  };
3795
3771
 
3796
- const _excluded$w = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3797
- var _jsxFileName$X = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/image/Image.js";
3772
+ const _excluded$u = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3773
+ var _jsxFileName$V = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/image/Image.js";
3798
3774
  const ContainerFallback = styled(Flex$1, {
3799
3775
  boxSizing: 'border-box',
3800
3776
  border: '2px dashed #C0C4C4',
@@ -3843,7 +3819,7 @@ function Image(_ref) {
3843
3819
  cssFallback,
3844
3820
  rounded
3845
3821
  } = _ref,
3846
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
3822
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
3847
3823
  const {
3848
3824
  t
3849
3825
  } = useTranslation('translation');
@@ -3862,7 +3838,7 @@ function Image(_ref) {
3862
3838
  }, props, {
3863
3839
  __self: this,
3864
3840
  __source: {
3865
- fileName: _jsxFileName$X,
3841
+ fileName: _jsxFileName$V,
3866
3842
  lineNumber: 61,
3867
3843
  columnNumber: 7
3868
3844
  }
@@ -3878,14 +3854,14 @@ function Image(_ref) {
3878
3854
  }, cssFallback),
3879
3855
  __self: this,
3880
3856
  __source: {
3881
- fileName: _jsxFileName$X,
3857
+ fileName: _jsxFileName$V,
3882
3858
  lineNumber: 75,
3883
3859
  columnNumber: 7
3884
3860
  }
3885
3861
  }, /*#__PURE__*/React__default.createElement(TextFallback, {
3886
3862
  __self: this,
3887
3863
  __source: {
3888
- fileName: _jsxFileName$X,
3864
+ fileName: _jsxFileName$V,
3889
3865
  lineNumber: 76,
3890
3866
  columnNumber: 9
3891
3867
  }
@@ -4486,8 +4462,6 @@ for (var COLLECTION_NAME in DOMIterables) {
4486
4462
 
4487
4463
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
4488
4464
 
4489
- const _excluded$v = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
4490
- var _jsxFileName$W = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
4491
4465
  const {
4492
4466
  zIndices: zIndices$2
4493
4467
  } = foundations;
@@ -4573,10 +4547,10 @@ const TooltipBase = styled(TooltipPrimitive.Root, {
4573
4547
  color: 'ligth'
4574
4548
  }
4575
4549
  });
4576
-
4577
4550
  // Exports
4578
4551
  const Provider = TooltipPrimitive.Provider;
4579
4552
  const TooltipTrigger = TooltipPrimitive.Trigger;
4553
+ const TooltipContent = StyledContent$6;
4580
4554
  const dark = {
4581
4555
  color: foundations.colors.white,
4582
4556
  backgroundColor: foundations.colors.gray800
@@ -4591,8 +4565,8 @@ const darkArrow = {
4591
4565
  const lightArrow = {
4592
4566
  fill: foundations.colors.bgWhite
4593
4567
  };
4594
- const Tooltip$1 = _ref => {
4595
- let {
4568
+ const Tooltip$1 = _a => {
4569
+ var {
4596
4570
  children,
4597
4571
  label,
4598
4572
  color,
@@ -4601,98 +4575,52 @@ const Tooltip$1 = _ref => {
4601
4575
  side,
4602
4576
  align,
4603
4577
  delayDuration
4604
- } = _ref,
4605
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4578
+ } = _a,
4579
+ rest = __rest(_a, ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"]);
4606
4580
  const [open, setOpen] = useState(false);
4607
- return /*#__PURE__*/React__default.createElement(Provider, {
4608
- __self: undefined,
4609
- __source: {
4610
- fileName: _jsxFileName$W,
4611
- lineNumber: 91,
4612
- columnNumber: 5
4613
- }
4614
- }, /*#__PURE__*/React__default.createElement(TooltipBase, _extends({}, rest, {
4615
- open: withClick ? open : undefined,
4616
- delayDuration: delayDuration,
4617
- __self: undefined,
4618
- __source: {
4619
- fileName: _jsxFileName$W,
4620
- lineNumber: 92,
4621
- columnNumber: 7
4622
- }
4623
- }), /*#__PURE__*/React__default.createElement(TooltipTrigger, {
4624
- asChild: true,
4625
- __self: undefined,
4626
- __source: {
4627
- fileName: _jsxFileName$W,
4628
- lineNumber: 93,
4629
- columnNumber: 9
4630
- }
4631
- }, /*#__PURE__*/React__default.createElement(TriggerSpan, {
4632
- onClick: () => withClick && !open && setOpen(true),
4633
- __self: undefined,
4634
- __source: {
4635
- fileName: _jsxFileName$W,
4636
- lineNumber: 94,
4637
- columnNumber: 11
4638
- }
4639
- }, children)), /*#__PURE__*/React__default.createElement(TooltipPrimitive.Portal, {
4640
- __self: undefined,
4641
- __source: {
4642
- fileName: _jsxFileName$W,
4643
- lineNumber: 96,
4644
- columnNumber: 9
4645
- }
4646
- }, /*#__PURE__*/React__default.createElement(StyledContent$6, {
4647
- align: align,
4648
- side: side,
4649
- sideOffset: 5,
4650
- css: color === 'dark' ? Object.assign({}, dark, css) : Object.assign({}, ligth, css),
4651
- onPointerDownOutside: () => setTimeout(() => {
4652
- setOpen(false);
4653
- }, 100),
4654
- __self: undefined,
4655
- __source: {
4656
- fileName: _jsxFileName$W,
4657
- lineNumber: 97,
4658
- columnNumber: 11
4659
- }
4660
- }, label, /*#__PURE__*/React__default.createElement(StyledArrow$1, {
4661
- offset: 10,
4662
- css: color === 'dark' ? darkArrow : lightArrow,
4663
- __self: undefined,
4664
- __source: {
4665
- fileName: _jsxFileName$W,
4666
- lineNumber: 109,
4667
- columnNumber: 13
4668
- }
4669
- })))));
4670
- };
4671
- Tooltip$1.propTypes = {
4672
- children: PropTypes.node,
4673
- label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
4674
- color: PropTypes.string,
4675
- side: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
4676
- align: PropTypes.oneOf(['start', 'center', 'end'])
4581
+ return jsx(Provider, {
4582
+ children: jsxs(TooltipBase, Object.assign({}, rest, {
4583
+ open: withClick ? open : undefined,
4584
+ delayDuration: delayDuration
4585
+ }, {
4586
+ children: [jsx(TooltipTrigger, Object.assign({
4587
+ asChild: true
4588
+ }, {
4589
+ children: jsx(TriggerSpan, Object.assign({
4590
+ onClick: () => withClick && !open && setOpen(true)
4591
+ }, {
4592
+ children: children
4593
+ }), void 0)
4594
+ }), void 0), jsx(TooltipPrimitive.Portal, {
4595
+ children: jsxs(StyledContent$6, Object.assign({
4596
+ align: align,
4597
+ side: side,
4598
+ sideOffset: 5,
4599
+ css: color === 'dark' ? Object.assign(Object.assign({}, dark), css) : Object.assign(Object.assign({}, ligth), css),
4600
+ onPointerDownOutside: () => setTimeout(() => {
4601
+ setOpen(false);
4602
+ }, 100)
4603
+ }, {
4604
+ children: [label, jsx(StyledArrow$1, {
4605
+ offset: 10,
4606
+ css: color === 'dark' ? darkArrow : lightArrow
4607
+ }, void 0)]
4608
+ }), void 0)
4609
+ }, void 0)]
4610
+ }), void 0)
4611
+ }, void 0);
4677
4612
  };
4678
4613
  Tooltip$1.defaultProps = {
4679
4614
  color: 'dark',
4680
4615
  side: 'bottom',
4681
4616
  align: 'center',
4682
4617
  label: '',
4683
- children: /*#__PURE__*/React__default.createElement("div", {
4684
- __self: undefined,
4685
- __source: {
4686
- fileName: _jsxFileName$W,
4687
- lineNumber: 130,
4688
- columnNumber: 13
4689
- }
4690
- }),
4618
+ children: jsx("div", {}, void 0),
4691
4619
  delayDuration: 200
4692
4620
  };
4693
4621
 
4694
- const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4695
- var _jsxFileName$V = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/progress/Progress.js";
4622
+ const _excluded$t = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4623
+ var _jsxFileName$U = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/progress/Progress.js";
4696
4624
  const StyledProgress$1 = styled$1(ProgressPrimitive.Root, {
4697
4625
  position: 'relative',
4698
4626
  overflow: 'hidden',
@@ -4810,7 +4738,7 @@ function Progress$1(_ref) {
4810
4738
  rounded,
4811
4739
  width
4812
4740
  } = _ref,
4813
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4741
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
4814
4742
  return /*#__PURE__*/React__default.createElement(StyledProgress$1, _extends({
4815
4743
  className: className,
4816
4744
  value: value,
@@ -4825,7 +4753,7 @@ function Progress$1(_ref) {
4825
4753
  }, props, {
4826
4754
  __self: this,
4827
4755
  __source: {
4828
- fileName: _jsxFileName$V,
4756
+ fileName: _jsxFileName$U,
4829
4757
  lineNumber: 88,
4830
4758
  columnNumber: 5
4831
4759
  }
@@ -4838,7 +4766,7 @@ function Progress$1(_ref) {
4838
4766
  },
4839
4767
  __self: this,
4840
4768
  __source: {
4841
- fileName: _jsxFileName$V,
4769
+ fileName: _jsxFileName$U,
4842
4770
  lineNumber: 89,
4843
4771
  columnNumber: 7
4844
4772
  }
@@ -5500,8 +5428,8 @@ function useMediaQuery(query) {
5500
5428
  return matches;
5501
5429
  }
5502
5430
 
5503
- const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5504
- var _jsxFileName$U = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/Toast.js";
5431
+ const _excluded$s = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5432
+ var _jsxFileName$T = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/Toast.js";
5505
5433
  const TOAST_WIDTH = 576;
5506
5434
  const ANIMATION_DURATION = 400;
5507
5435
  const TOP_RIGHT_POSITION = 'top-right';
@@ -5669,7 +5597,7 @@ const Toast = _ref => {
5669
5597
  captionOfAction,
5670
5598
  hrefOfAction
5671
5599
  } = _ref,
5672
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
5600
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
5673
5601
  const [isOpen, setIsOpen] = React.useState(false);
5674
5602
  const isMobile = useMediaQuery(`(max-width: 767px`);
5675
5603
  const close = React.useCallback(() => {
@@ -5698,7 +5626,7 @@ const Toast = _ref => {
5698
5626
  onExited: onRemove,
5699
5627
  __self: undefined,
5700
5628
  __source: {
5701
- fileName: _jsxFileName$U,
5629
+ fileName: _jsxFileName$T,
5702
5630
  lineNumber: 216,
5703
5631
  columnNumber: 5
5704
5632
  }
@@ -5713,7 +5641,7 @@ const Toast = _ref => {
5713
5641
  }, rest, {
5714
5642
  __self: undefined,
5715
5643
  __source: {
5716
- fileName: _jsxFileName$U,
5644
+ fileName: _jsxFileName$T,
5717
5645
  lineNumber: 227,
5718
5646
  columnNumber: 9
5719
5647
  }
@@ -5723,7 +5651,7 @@ const Toast = _ref => {
5723
5651
  onClick: onClick,
5724
5652
  __self: undefined,
5725
5653
  __source: {
5726
- fileName: _jsxFileName$U,
5654
+ fileName: _jsxFileName$T,
5727
5655
  lineNumber: 235,
5728
5656
  columnNumber: 11
5729
5657
  }
@@ -5731,7 +5659,7 @@ const Toast = _ref => {
5731
5659
  direction: "column",
5732
5660
  __self: undefined,
5733
5661
  __source: {
5734
- fileName: _jsxFileName$U,
5662
+ fileName: _jsxFileName$T,
5735
5663
  lineNumber: 236,
5736
5664
  columnNumber: 13
5737
5665
  }
@@ -5739,7 +5667,7 @@ const Toast = _ref => {
5739
5667
  direction: "row",
5740
5668
  __self: undefined,
5741
5669
  __source: {
5742
- fileName: _jsxFileName$U,
5670
+ fileName: _jsxFileName$T,
5743
5671
  lineNumber: 237,
5744
5672
  columnNumber: 15
5745
5673
  }
@@ -5747,7 +5675,7 @@ const Toast = _ref => {
5747
5675
  variant: variant,
5748
5676
  __self: undefined,
5749
5677
  __source: {
5750
- fileName: _jsxFileName$U,
5678
+ fileName: _jsxFileName$T,
5751
5679
  lineNumber: 238,
5752
5680
  columnNumber: 17
5753
5681
  }
@@ -5759,7 +5687,7 @@ const Toast = _ref => {
5759
5687
  },
5760
5688
  __self: undefined,
5761
5689
  __source: {
5762
- fileName: _jsxFileName$U,
5690
+ fileName: _jsxFileName$T,
5763
5691
  lineNumber: 239,
5764
5692
  columnNumber: 17
5765
5693
  }
@@ -5767,7 +5695,7 @@ const Toast = _ref => {
5767
5695
  justify: "between",
5768
5696
  __self: undefined,
5769
5697
  __source: {
5770
- fileName: _jsxFileName$U,
5698
+ fileName: _jsxFileName$T,
5771
5699
  lineNumber: 247,
5772
5700
  columnNumber: 21
5773
5701
  }
@@ -5782,7 +5710,7 @@ const Toast = _ref => {
5782
5710
  },
5783
5711
  __self: undefined,
5784
5712
  __source: {
5785
- fileName: _jsxFileName$U,
5713
+ fileName: _jsxFileName$T,
5786
5714
  lineNumber: 248,
5787
5715
  columnNumber: 23
5788
5716
  }
@@ -5791,7 +5719,7 @@ const Toast = _ref => {
5791
5719
  color: "secondary",
5792
5720
  __self: undefined,
5793
5721
  __source: {
5794
- fileName: _jsxFileName$U,
5722
+ fileName: _jsxFileName$T,
5795
5723
  lineNumber: 262,
5796
5724
  columnNumber: 19
5797
5725
  }
@@ -5806,7 +5734,7 @@ const Toast = _ref => {
5806
5734
  hasTitle: !!title,
5807
5735
  __self: undefined,
5808
5736
  __source: {
5809
- fileName: _jsxFileName$U,
5737
+ fileName: _jsxFileName$T,
5810
5738
  lineNumber: 266,
5811
5739
  columnNumber: 17
5812
5740
  }
@@ -5815,7 +5743,7 @@ const Toast = _ref => {
5815
5743
  size: "16px",
5816
5744
  __self: undefined,
5817
5745
  __source: {
5818
- fileName: _jsxFileName$U,
5746
+ fileName: _jsxFileName$T,
5819
5747
  lineNumber: 276,
5820
5748
  columnNumber: 19
5821
5749
  }
@@ -5830,7 +5758,7 @@ const Toast = _ref => {
5830
5758
  },
5831
5759
  __self: undefined,
5832
5760
  __source: {
5833
- fileName: _jsxFileName$U,
5761
+ fileName: _jsxFileName$T,
5834
5762
  lineNumber: 280,
5835
5763
  columnNumber: 17
5836
5764
  }
@@ -5852,8 +5780,8 @@ Toast.defaultProps = {
5852
5780
  dismissAfter: 5000
5853
5781
  };
5854
5782
 
5855
- const _excluded$s = ["preventDuplicate"];
5856
- var _jsxFileName$T = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
5783
+ const _excluded$r = ["preventDuplicate"];
5784
+ var _jsxFileName$S = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
5857
5785
  const ToastBox = styled(Flex$1, {
5858
5786
  position: 'fixed',
5859
5787
  variants: {
@@ -5900,7 +5828,7 @@ const ToastContainer = ({
5900
5828
  },
5901
5829
  __self: undefined,
5902
5830
  __source: {
5903
- fileName: _jsxFileName$T,
5831
+ fileName: _jsxFileName$S,
5904
5832
  lineNumber: 43,
5905
5833
  columnNumber: 5
5906
5834
  }
@@ -5908,7 +5836,7 @@ const ToastContainer = ({
5908
5836
  position: position,
5909
5837
  __self: undefined,
5910
5838
  __source: {
5911
- fileName: _jsxFileName$T,
5839
+ fileName: _jsxFileName$S,
5912
5840
  lineNumber: 44,
5913
5841
  columnNumber: 7
5914
5842
  }
@@ -5916,14 +5844,14 @@ const ToastContainer = ({
5916
5844
  const {
5917
5845
  preventDuplicate
5918
5846
  } = item,
5919
- toast = _objectWithoutPropertiesLoose(item, _excluded$s);
5847
+ toast = _objectWithoutPropertiesLoose(item, _excluded$r);
5920
5848
  return /*#__PURE__*/React.createElement(Toast, _extends({
5921
5849
  key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
5922
5850
  onRemove: () => removeToast(toast.id)
5923
5851
  }, toast, {
5924
5852
  __self: undefined,
5925
5853
  __source: {
5926
- fileName: _jsxFileName$T,
5854
+ fileName: _jsxFileName$S,
5927
5855
  lineNumber: 47,
5928
5856
  columnNumber: 18
5929
5857
  }
@@ -7173,8 +7101,8 @@ const catchError = e => {
7173
7101
  return message;
7174
7102
  };
7175
7103
 
7176
- const _excluded$r = ["id", "disabledOfflineIntercept"];
7177
- var _jsxFileName$S = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
7104
+ const _excluded$q = ["id", "disabledOfflineIntercept"];
7105
+ var _jsxFileName$R = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
7178
7106
  let toastCount = 0;
7179
7107
  const ToastProvider = ({
7180
7108
  children,
@@ -7203,7 +7131,7 @@ const ToastProvider = ({
7203
7131
  id,
7204
7132
  disabledOfflineIntercept
7205
7133
  } = toast,
7206
- rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
7134
+ rest = _objectWithoutPropertiesLoose(toast, _excluded$q);
7207
7135
 
7208
7136
  // eslint-disable-next-line no-plusplus
7209
7137
  const uniqueId = ++toastCount;
@@ -7243,7 +7171,7 @@ const ToastProvider = ({
7243
7171
  },
7244
7172
  __self: undefined,
7245
7173
  __source: {
7246
- fileName: _jsxFileName$S,
7174
+ fileName: _jsxFileName$R,
7247
7175
  lineNumber: 81,
7248
7176
  columnNumber: 5
7249
7177
  }
@@ -7252,7 +7180,7 @@ const ToastProvider = ({
7252
7180
  position: TOP_RIGHT_POSITION,
7253
7181
  __self: undefined,
7254
7182
  __source: {
7255
- fileName: _jsxFileName$S,
7183
+ fileName: _jsxFileName$R,
7256
7184
  lineNumber: 83,
7257
7185
  columnNumber: 7
7258
7186
  }
@@ -7261,7 +7189,7 @@ const ToastProvider = ({
7261
7189
  position: TOP_LEFT_POSITION,
7262
7190
  __self: undefined,
7263
7191
  __source: {
7264
- fileName: _jsxFileName$S,
7192
+ fileName: _jsxFileName$R,
7265
7193
  lineNumber: 87,
7266
7194
  columnNumber: 7
7267
7195
  }
@@ -7270,7 +7198,7 @@ const ToastProvider = ({
7270
7198
  position: BOTTOM_RIGHT_POSITION,
7271
7199
  __self: undefined,
7272
7200
  __source: {
7273
- fileName: _jsxFileName$S,
7201
+ fileName: _jsxFileName$R,
7274
7202
  lineNumber: 91,
7275
7203
  columnNumber: 7
7276
7204
  }
@@ -7279,7 +7207,7 @@ const ToastProvider = ({
7279
7207
  position: BOTTOM_LEFT_POSITION,
7280
7208
  __self: undefined,
7281
7209
  __source: {
7282
- fileName: _jsxFileName$S,
7210
+ fileName: _jsxFileName$R,
7283
7211
  lineNumber: 95,
7284
7212
  columnNumber: 7
7285
7213
  }
@@ -7292,8 +7220,8 @@ const ConditionalWrapper = ({
7292
7220
  children
7293
7221
  }) => condition ? wrapper(children) : children;
7294
7222
 
7295
- const _excluded$q = ["count", "maxCount", "css"];
7296
- var _jsxFileName$R = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
7223
+ const _excluded$p = ["count", "maxCount", "css"];
7224
+ var _jsxFileName$Q = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
7297
7225
  const formLabelClassStyle = {
7298
7226
  alignItems: 'start !important',
7299
7227
  '& > div': {
@@ -7396,7 +7324,7 @@ const FormGroup = _ref => {
7396
7324
  maxCount,
7397
7325
  css
7398
7326
  } = _ref,
7399
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7327
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7400
7328
  const withCounter = Boolean(count || maxCount);
7401
7329
  return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
7402
7330
  condition: withCounter,
@@ -7405,7 +7333,7 @@ const FormGroup = _ref => {
7405
7333
  css: css,
7406
7334
  __self: undefined,
7407
7335
  __source: {
7408
- fileName: _jsxFileName$R,
7336
+ fileName: _jsxFileName$Q,
7409
7337
  lineNumber: 115,
7410
7338
  columnNumber: 9
7411
7339
  }
@@ -7418,14 +7346,14 @@ const FormGroup = _ref => {
7418
7346
  },
7419
7347
  __self: undefined,
7420
7348
  __source: {
7421
- fileName: _jsxFileName$R,
7349
+ fileName: _jsxFileName$Q,
7422
7350
  lineNumber: 116,
7423
7351
  columnNumber: 11
7424
7352
  }
7425
7353
  }, count, "/", maxCount), children),
7426
7354
  __self: undefined,
7427
7355
  __source: {
7428
- fileName: _jsxFileName$R,
7356
+ fileName: _jsxFileName$Q,
7429
7357
  lineNumber: 112,
7430
7358
  columnNumber: 5
7431
7359
  }
@@ -7435,7 +7363,7 @@ const FormGroup = _ref => {
7435
7363
  }, props, {
7436
7364
  __self: undefined,
7437
7365
  __source: {
7438
- fileName: _jsxFileName$R,
7366
+ fileName: _jsxFileName$Q,
7439
7367
  lineNumber: 123,
7440
7368
  columnNumber: 7
7441
7369
  }
@@ -7443,8 +7371,8 @@ const FormGroup = _ref => {
7443
7371
  };
7444
7372
  FormGroup.displayName = 'FormGroup';
7445
7373
 
7446
- const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7447
- var _jsxFileName$Q = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
7374
+ const _excluded$o = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7375
+ var _jsxFileName$P = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
7448
7376
  const StyledLabel$1 = styled(LabelPrimitive.Root, Text$1, {
7449
7377
  display: 'inline-block',
7450
7378
  fontSize: '$label',
@@ -7476,13 +7404,13 @@ const FormLabel = _ref => {
7476
7404
  maxCount,
7477
7405
  labelCss
7478
7406
  } = _ref,
7479
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7407
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7480
7408
  return /*#__PURE__*/React__default.createElement(Flex$1, {
7481
7409
  justify: "between",
7482
7410
  className: "form-label",
7483
7411
  __self: undefined,
7484
7412
  __source: {
7485
- fileName: _jsxFileName$Q,
7413
+ fileName: _jsxFileName$P,
7486
7414
  lineNumber: 36,
7487
7415
  columnNumber: 5
7488
7416
  }
@@ -7492,7 +7420,7 @@ const FormLabel = _ref => {
7492
7420
  }, props, {
7493
7421
  __self: undefined,
7494
7422
  __source: {
7495
- fileName: _jsxFileName$Q,
7423
+ fileName: _jsxFileName$P,
7496
7424
  lineNumber: 37,
7497
7425
  columnNumber: 7
7498
7426
  }
@@ -7502,7 +7430,7 @@ const FormLabel = _ref => {
7502
7430
  css: labelCss,
7503
7431
  __self: undefined,
7504
7432
  __source: {
7505
- fileName: _jsxFileName$Q,
7433
+ fileName: _jsxFileName$P,
7506
7434
  lineNumber: 38,
7507
7435
  columnNumber: 9
7508
7436
  }
@@ -7517,7 +7445,7 @@ const FormLabel = _ref => {
7517
7445
  },
7518
7446
  __self: undefined,
7519
7447
  __source: {
7520
- fileName: _jsxFileName$Q,
7448
+ fileName: _jsxFileName$P,
7521
7449
  lineNumber: 42,
7522
7450
  columnNumber: 11
7523
7451
  }
@@ -7525,14 +7453,14 @@ const FormLabel = _ref => {
7525
7453
  label: tooltipLabel,
7526
7454
  __self: undefined,
7527
7455
  __source: {
7528
- fileName: _jsxFileName$Q,
7456
+ fileName: _jsxFileName$P,
7529
7457
  lineNumber: 56,
7530
7458
  columnNumber: 11
7531
7459
  }
7532
7460
  }, /*#__PURE__*/React__default.createElement(StyledHelpIcon, {
7533
7461
  __self: undefined,
7534
7462
  __source: {
7535
- fileName: _jsxFileName$Q,
7463
+ fileName: _jsxFileName$P,
7536
7464
  lineNumber: 57,
7537
7465
  columnNumber: 13
7538
7466
  }
@@ -7541,7 +7469,7 @@ const FormLabel = _ref => {
7541
7469
  color: "disable",
7542
7470
  __self: undefined,
7543
7471
  __source: {
7544
- fileName: _jsxFileName$Q,
7472
+ fileName: _jsxFileName$P,
7545
7473
  lineNumber: 62,
7546
7474
  columnNumber: 9
7547
7475
  }
@@ -7560,8 +7488,8 @@ FormLabel.defaultProps = {
7560
7488
  };
7561
7489
  FormLabel.displayName = 'FormLabel';
7562
7490
 
7563
- const _excluded$o = ["children", "error", "errorMessage"];
7564
- var _jsxFileName$P = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
7491
+ const _excluded$n = ["children", "error", "errorMessage"];
7492
+ var _jsxFileName$O = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
7565
7493
  const StyledHelper = styled(Text$1, {
7566
7494
  display: 'inline-block',
7567
7495
  color: '$textSecondary',
@@ -7579,7 +7507,7 @@ const FormHelper = _ref => {
7579
7507
  error,
7580
7508
  errorMessage
7581
7509
  } = _ref,
7582
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7510
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7583
7511
  const errorByMessage = !!errorMessage;
7584
7512
  if (error === undefined && errorByMessage) {
7585
7513
  return /*#__PURE__*/React__default.createElement(StyledHelper, _extends({
@@ -7589,7 +7517,7 @@ const FormHelper = _ref => {
7589
7517
  }, props, {
7590
7518
  __self: undefined,
7591
7519
  __source: {
7592
- fileName: _jsxFileName$P,
7520
+ fileName: _jsxFileName$O,
7593
7521
  lineNumber: 22,
7594
7522
  columnNumber: 7
7595
7523
  }
@@ -7605,7 +7533,7 @@ const FormHelper = _ref => {
7605
7533
  }, props, {
7606
7534
  __self: undefined,
7607
7535
  __source: {
7608
- fileName: _jsxFileName$P,
7536
+ fileName: _jsxFileName$O,
7609
7537
  lineNumber: 31,
7610
7538
  columnNumber: 5
7611
7539
  }
@@ -7616,7 +7544,7 @@ FormHelper.propTypes = {
7616
7544
  };
7617
7545
  FormHelper.displayName = 'FormHelper';
7618
7546
 
7619
- var _jsxFileName$O = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
7547
+ var _jsxFileName$N = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
7620
7548
  const CheckboxContext = /*#__PURE__*/createContext();
7621
7549
  const CheckboxGroup = ({
7622
7550
  children,
@@ -7657,7 +7585,7 @@ const CheckboxGroup = ({
7657
7585
  value: values,
7658
7586
  __self: undefined,
7659
7587
  __source: {
7660
- fileName: _jsxFileName$O,
7588
+ fileName: _jsxFileName$N,
7661
7589
  lineNumber: 35,
7662
7590
  columnNumber: 5
7663
7591
  }
@@ -7674,7 +7602,7 @@ CheckboxGroup.defaultProps = {
7674
7602
  };
7675
7603
  CheckboxGroup.displayName = 'CheckboxGroup';
7676
7604
 
7677
- var _jsxFileName$N = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
7605
+ var _jsxFileName$M = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
7678
7606
  const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends({
7679
7607
  xmlns: "http://www.w3.org/2000/svg",
7680
7608
  xmlSpace: "preserve",
@@ -7691,7 +7619,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
7691
7619
  }, props, {
7692
7620
  __self: undefined,
7693
7621
  __source: {
7694
- fileName: _jsxFileName$N,
7622
+ fileName: _jsxFileName$M,
7695
7623
  lineNumber: 4,
7696
7624
  columnNumber: 3
7697
7625
  }
@@ -7703,7 +7631,7 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
7703
7631
  },
7704
7632
  __self: undefined,
7705
7633
  __source: {
7706
- fileName: _jsxFileName$N,
7634
+ fileName: _jsxFileName$M,
7707
7635
  lineNumber: 19,
7708
7636
  columnNumber: 5
7709
7637
  }
@@ -7715,13 +7643,13 @@ const CheckOutline$1 = props => /*#__PURE__*/React.createElement("svg", _extends
7715
7643
  },
7716
7644
  __self: undefined,
7717
7645
  __source: {
7718
- fileName: _jsxFileName$N,
7646
+ fileName: _jsxFileName$M,
7719
7647
  lineNumber: 26,
7720
7648
  columnNumber: 5
7721
7649
  }
7722
7650
  }));
7723
7651
 
7724
- var _jsxFileName$M = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
7652
+ var _jsxFileName$L = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
7725
7653
  const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extends({
7726
7654
  xmlns: "http://www.w3.org/2000/svg",
7727
7655
  xmlSpace: "preserve",
@@ -7738,7 +7666,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
7738
7666
  }, props, {
7739
7667
  __self: undefined,
7740
7668
  __source: {
7741
- fileName: _jsxFileName$M,
7669
+ fileName: _jsxFileName$L,
7742
7670
  lineNumber: 4,
7743
7671
  columnNumber: 3
7744
7672
  }
@@ -7750,7 +7678,7 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
7750
7678
  },
7751
7679
  __self: undefined,
7752
7680
  __source: {
7753
- fileName: _jsxFileName$M,
7681
+ fileName: _jsxFileName$L,
7754
7682
  lineNumber: 19,
7755
7683
  columnNumber: 5
7756
7684
  }
@@ -7762,14 +7690,14 @@ const SvgMinusOutline = props => /*#__PURE__*/React.createElement("svg", _extend
7762
7690
  d: "M14.31 10.41H3.9v-2.6h10.41z",
7763
7691
  __self: undefined,
7764
7692
  __source: {
7765
- fileName: _jsxFileName$M,
7693
+ fileName: _jsxFileName$L,
7766
7694
  lineNumber: 26,
7767
7695
  columnNumber: 5
7768
7696
  }
7769
7697
  }));
7770
7698
 
7771
- const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7772
- var _jsxFileName$L = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
7699
+ const _excluded$m = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7700
+ var _jsxFileName$K = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
7773
7701
  const StyledIndicator$2 = styled(CheckboxPrimitive.Indicator, {
7774
7702
  alignItems: 'center',
7775
7703
  display: 'flex',
@@ -7827,7 +7755,7 @@ const Checkbox = _ref => {
7827
7755
  index,
7828
7756
  value
7829
7757
  } = _ref,
7830
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7758
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
7831
7759
  const context = useContext(CheckboxContext);
7832
7760
  const [isChecked, setChecked] = useState(false);
7833
7761
  useEffect(() => {
@@ -7848,28 +7776,28 @@ const Checkbox = _ref => {
7848
7776
  }, props, {
7849
7777
  __self: undefined,
7850
7778
  __source: {
7851
- fileName: _jsxFileName$L,
7779
+ fileName: _jsxFileName$K,
7852
7780
  lineNumber: 64,
7853
7781
  columnNumber: 5
7854
7782
  }
7855
7783
  }), /*#__PURE__*/React__default.createElement(StyledIndicator$2, {
7856
7784
  __self: undefined,
7857
7785
  __source: {
7858
- fileName: _jsxFileName$L,
7786
+ fileName: _jsxFileName$K,
7859
7787
  lineNumber: 77,
7860
7788
  columnNumber: 7
7861
7789
  }
7862
7790
  }, indeterminate ? /*#__PURE__*/React__default.createElement(SvgMinusOutline, {
7863
7791
  __self: undefined,
7864
7792
  __source: {
7865
- fileName: _jsxFileName$L,
7793
+ fileName: _jsxFileName$K,
7866
7794
  lineNumber: 77,
7867
7795
  columnNumber: 41
7868
7796
  }
7869
7797
  }) : /*#__PURE__*/React__default.createElement(CheckOutline$1, {
7870
7798
  __self: undefined,
7871
7799
  __source: {
7872
- fileName: _jsxFileName$L,
7800
+ fileName: _jsxFileName$K,
7873
7801
  lineNumber: 77,
7874
7802
  columnNumber: 60
7875
7803
  }
@@ -7882,14 +7810,14 @@ const InputCheckbox = _ref2 => {
7882
7810
  gap: 4,
7883
7811
  __self: undefined,
7884
7812
  __source: {
7885
- fileName: _jsxFileName$L,
7813
+ fileName: _jsxFileName$K,
7886
7814
  lineNumber: 84,
7887
7815
  columnNumber: 5
7888
7816
  }
7889
7817
  }, /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
7890
7818
  __self: undefined,
7891
7819
  __source: {
7892
- fileName: _jsxFileName$L,
7820
+ fileName: _jsxFileName$K,
7893
7821
  lineNumber: 85,
7894
7822
  columnNumber: 7
7895
7823
  }
@@ -7905,14 +7833,14 @@ const InputCheckbox = _ref2 => {
7905
7833
  },
7906
7834
  __self: undefined,
7907
7835
  __source: {
7908
- fileName: _jsxFileName$L,
7836
+ fileName: _jsxFileName$K,
7909
7837
  lineNumber: 86,
7910
7838
  columnNumber: 7
7911
7839
  }
7912
7840
  }, props.label)) : /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, props, {
7913
7841
  __self: undefined,
7914
7842
  __source: {
7915
- fileName: _jsxFileName$L,
7843
+ fileName: _jsxFileName$K,
7916
7844
  lineNumber: 101,
7917
7845
  columnNumber: 5
7918
7846
  }
@@ -7929,8 +7857,8 @@ InputCheckbox.propTypes = {
7929
7857
  };
7930
7858
  InputCheckbox.displayName = 'InputCheckbox';
7931
7859
 
7932
- const _excluded$m = ["children", "size"];
7933
- var _jsxFileName$K = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
7860
+ const _excluded$l = ["children", "size"];
7861
+ var _jsxFileName$J = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
7934
7862
  const InputGroupStyle = styled('div', {
7935
7863
  display: 'flex',
7936
7864
  width: '100%',
@@ -8069,7 +7997,7 @@ const InputGroup = _ref => {
8069
7997
  children,
8070
7998
  size = 'lg'
8071
7999
  } = _ref,
8072
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
8000
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8073
8001
  const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8074
8002
  const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8075
8003
  const clone = children.map((child, index) => {
@@ -8092,7 +8020,7 @@ const InputGroup = _ref => {
8092
8020
  isElement: isElement,
8093
8021
  __self: undefined,
8094
8022
  __source: {
8095
- fileName: _jsxFileName$K,
8023
+ fileName: _jsxFileName$J,
8096
8024
  lineNumber: 169,
8097
8025
  columnNumber: 10
8098
8026
  }
@@ -8268,8 +8196,8 @@ InputSuffix.propTypes = {
8268
8196
  children: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
8269
8197
  };
8270
8198
 
8271
- const _excluded$l = ["disabled", "readOnly"];
8272
- var _jsxFileName$J = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
8199
+ const _excluded$k = ["disabled", "readOnly"];
8200
+ var _jsxFileName$I = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
8273
8201
  const disabledStyle = {
8274
8202
  backgroundColor: '$formDisable',
8275
8203
  color: '$textDisable',
@@ -8442,7 +8370,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
8442
8370
  disabled,
8443
8371
  readOnly
8444
8372
  } = _ref,
8445
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8373
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8446
8374
  return /*#__PURE__*/React__default.createElement(StyledInput$1, _extends({
8447
8375
  ref: ref,
8448
8376
  disabled: disabled,
@@ -8452,7 +8380,7 @@ const InputText = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
8452
8380
  }, props, {
8453
8381
  __self: undefined,
8454
8382
  __source: {
8455
- fileName: _jsxFileName$J,
8383
+ fileName: _jsxFileName$I,
8456
8384
  lineNumber: 185,
8457
8385
  columnNumber: 3
8458
8386
  }
@@ -8470,8 +8398,8 @@ InputText.propTypes = {
8470
8398
  };
8471
8399
  InputText.displayName = 'InputText';
8472
8400
 
8473
- const _excluded$k = ["disabled", "readOnly"];
8474
- var _jsxFileName$I = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
8401
+ const _excluded$j = ["disabled", "readOnly"];
8402
+ var _jsxFileName$H = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
8475
8403
  const StyledTextArea = styled(StyledInput$1, {
8476
8404
  variants: {
8477
8405
  size: {
@@ -8492,7 +8420,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
8492
8420
  disabled,
8493
8421
  readOnly
8494
8422
  } = _ref,
8495
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8423
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8496
8424
  const textareaRef = useRef(null);
8497
8425
  useEffect(() => {
8498
8426
  if (textareaRef.current) {
@@ -8526,7 +8454,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
8526
8454
  }, props, {
8527
8455
  __self: undefined,
8528
8456
  __source: {
8529
- fileName: _jsxFileName$I,
8457
+ fileName: _jsxFileName$H,
8530
8458
  lineNumber: 51,
8531
8459
  columnNumber: 5
8532
8460
  }
@@ -8549,21 +8477,21 @@ InputTextArea.defaultProps = {
8549
8477
 
8550
8478
  const InputRadioContext = /*#__PURE__*/React__default.createContext();
8551
8479
 
8552
- var _jsxFileName$H = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
8480
+ var _jsxFileName$G = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
8553
8481
  const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
8554
8482
  function InputRadioGroup(props) {
8555
8483
  return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
8556
8484
  value: props,
8557
8485
  __self: this,
8558
8486
  __source: {
8559
- fileName: _jsxFileName$H,
8487
+ fileName: _jsxFileName$G,
8560
8488
  lineNumber: 13,
8561
8489
  columnNumber: 7
8562
8490
  }
8563
8491
  }, /*#__PURE__*/React__default.createElement(RadioGroup, _extends({}, props, {
8564
8492
  __self: this,
8565
8493
  __source: {
8566
- fileName: _jsxFileName$H,
8494
+ fileName: _jsxFileName$G,
8567
8495
  lineNumber: 14,
8568
8496
  columnNumber: 9
8569
8497
  }
@@ -8582,8 +8510,8 @@ InputRadioGroup.propTypes = {
8582
8510
  };
8583
8511
  InputRadioGroup.displayName = 'InputRadioGroup';
8584
8512
 
8585
- const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8586
- var _jsxFileName$G = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
8513
+ const _excluded$i = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8514
+ var _jsxFileName$F = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
8587
8515
  const INDICATOR_BASE_STYLES = {
8588
8516
  alignItems: 'center',
8589
8517
  display: 'flex',
@@ -8748,7 +8676,7 @@ const InputRadio = _ref => {
8748
8676
  description,
8749
8677
  readOnly
8750
8678
  } = _ref,
8751
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8679
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8752
8680
  function renderInputType(type, checkedValue, onValueChange) {
8753
8681
  switch (type) {
8754
8682
  case 'number':
@@ -8761,7 +8689,7 @@ const InputRadio = _ref => {
8761
8689
  asChild: true,
8762
8690
  __self: this,
8763
8691
  __source: {
8764
- fileName: _jsxFileName$G,
8692
+ fileName: _jsxFileName$F,
8765
8693
  lineNumber: 171,
8766
8694
  columnNumber: 11
8767
8695
  }
@@ -8777,7 +8705,7 @@ const InputRadio = _ref => {
8777
8705
  asChild: true,
8778
8706
  __self: this,
8779
8707
  __source: {
8780
- fileName: _jsxFileName$G,
8708
+ fileName: _jsxFileName$F,
8781
8709
  lineNumber: 184,
8782
8710
  columnNumber: 11
8783
8711
  }
@@ -8796,7 +8724,7 @@ const InputRadio = _ref => {
8796
8724
  },
8797
8725
  __self: this,
8798
8726
  __source: {
8799
- fileName: _jsxFileName$G,
8727
+ fileName: _jsxFileName$F,
8800
8728
  lineNumber: 198,
8801
8729
  columnNumber: 11
8802
8730
  }
@@ -8806,7 +8734,7 @@ const InputRadio = _ref => {
8806
8734
  return /*#__PURE__*/React__default.createElement(InputRadioContext.Consumer, {
8807
8735
  __self: undefined,
8808
8736
  __source: {
8809
- fileName: _jsxFileName$G,
8737
+ fileName: _jsxFileName$F,
8810
8738
  lineNumber: 217,
8811
8739
  columnNumber: 5
8812
8740
  }
@@ -8823,7 +8751,7 @@ const InputRadio = _ref => {
8823
8751
  outlined: outlined,
8824
8752
  __self: undefined,
8825
8753
  __source: {
8826
- fileName: _jsxFileName$G,
8754
+ fileName: _jsxFileName$F,
8827
8755
  lineNumber: 222,
8828
8756
  columnNumber: 11
8829
8757
  }
@@ -8838,7 +8766,7 @@ const InputRadio = _ref => {
8838
8766
  css: css,
8839
8767
  __self: undefined,
8840
8768
  __source: {
8841
- fileName: _jsxFileName$G,
8769
+ fileName: _jsxFileName$F,
8842
8770
  lineNumber: 223,
8843
8771
  columnNumber: 13
8844
8772
  }
@@ -8847,7 +8775,7 @@ const InputRadio = _ref => {
8847
8775
  gap: 4,
8848
8776
  __self: undefined,
8849
8777
  __source: {
8850
- fileName: _jsxFileName$G,
8778
+ fileName: _jsxFileName$F,
8851
8779
  lineNumber: 233,
8852
8780
  columnNumber: 15
8853
8781
  }
@@ -8858,14 +8786,14 @@ const InputRadio = _ref => {
8858
8786
  }, props, {
8859
8787
  __self: undefined,
8860
8788
  __source: {
8861
- fileName: _jsxFileName$G,
8789
+ fileName: _jsxFileName$F,
8862
8790
  lineNumber: 234,
8863
8791
  columnNumber: 17
8864
8792
  }
8865
8793
  }), /*#__PURE__*/React__default.createElement(StyledIndicator$1, {
8866
8794
  __self: undefined,
8867
8795
  __source: {
8868
- fileName: _jsxFileName$G,
8796
+ fileName: _jsxFileName$F,
8869
8797
  lineNumber: 235,
8870
8798
  columnNumber: 19
8871
8799
  }
@@ -8877,7 +8805,7 @@ const InputRadio = _ref => {
8877
8805
  },
8878
8806
  __self: undefined,
8879
8807
  __source: {
8880
- fileName: _jsxFileName$G,
8808
+ fileName: _jsxFileName$F,
8881
8809
  lineNumber: 240,
8882
8810
  columnNumber: 17
8883
8811
  }
@@ -10951,8 +10879,8 @@ var NumberFormat = /*@__PURE__*/function (superclass) {
10951
10879
  }(React__default.Component);
10952
10880
  NumberFormat.defaultProps = defaultProps;
10953
10881
 
10954
- const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
10955
- var _jsxFileName$F = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
10882
+ const _excluded$h = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
10883
+ var _jsxFileName$E = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
10956
10884
  const StyledInput = styled(NumberFormat, {
10957
10885
  // Reset
10958
10886
  appearance: 'none',
@@ -11147,7 +11075,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
11147
11075
  maxLength,
11148
11076
  thousandSeparator
11149
11077
  } = _ref,
11150
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
11078
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11151
11079
  return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
11152
11080
  condition: Boolean(control),
11153
11081
  wrapper: child => /*#__PURE__*/React__default.createElement(Controller, {
@@ -11165,14 +11093,14 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
11165
11093
  }),
11166
11094
  __self: undefined,
11167
11095
  __source: {
11168
- fileName: _jsxFileName$F,
11096
+ fileName: _jsxFileName$E,
11169
11097
  lineNumber: 225,
11170
11098
  columnNumber: 9
11171
11099
  }
11172
11100
  }),
11173
11101
  __self: undefined,
11174
11102
  __source: {
11175
- fileName: _jsxFileName$F,
11103
+ fileName: _jsxFileName$E,
11176
11104
  lineNumber: 222,
11177
11105
  columnNumber: 5
11178
11106
  }
@@ -11190,7 +11118,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
11190
11118
  }, props, {
11191
11119
  __self: undefined,
11192
11120
  __source: {
11193
- fileName: _jsxFileName$F,
11121
+ fileName: _jsxFileName$E,
11194
11122
  lineNumber: 234,
11195
11123
  columnNumber: 7
11196
11124
  }
@@ -11212,8 +11140,6 @@ InputNumber.defaultProps = {
11212
11140
  InputNumber.name = 'InputText';
11213
11141
  InputNumber.displayName = 'InputNumber';
11214
11142
 
11215
- const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
11216
- var _jsxFileName$E = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tag/Tag.js";
11217
11143
  const TagWrapper$4 = styled('div', {
11218
11144
  boxSizing: 'border-box',
11219
11145
  listStyle: 'none',
@@ -11256,6 +11182,10 @@ const TagWrapper$4 = styled('div', {
11256
11182
  }
11257
11183
  },
11258
11184
  type: {
11185
+ default: {
11186
+ background: '$bgGray',
11187
+ color: '$textPrimary'
11188
+ },
11259
11189
  success: {
11260
11190
  background: '$bgSuccess',
11261
11191
  color: '$textGreen'
@@ -11305,8 +11235,8 @@ const StyledIconLeft$3 = styled('div', {
11305
11235
  alignItems: 'center',
11306
11236
  color: 'inherit'
11307
11237
  });
11308
- const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
11309
- let {
11238
+ const Tag = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
11239
+ var {
11310
11240
  children,
11311
11241
  onClick,
11312
11242
  size,
@@ -11316,71 +11246,35 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
11316
11246
  type,
11317
11247
  onRemove,
11318
11248
  readOnly
11319
- } = _ref,
11320
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11321
- return /*#__PURE__*/React__default.createElement(TagWrapper$4, _extends({
11249
+ } = _a,
11250
+ props = __rest(_a, ["children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"]);
11251
+ return jsxs(TagWrapper$4, Object.assign({
11322
11252
  ref: ref,
11323
11253
  onClick: onClick,
11324
11254
  size: size,
11325
11255
  disabled: disabled,
11326
11256
  type: type,
11327
- readOnly: readOnly,
11328
- css: Object.assign({}, props.css)
11257
+ readOnly: readOnly
11329
11258
  }, props, {
11330
- __self: undefined,
11331
- __source: {
11332
- fileName: _jsxFileName$E,
11333
- lineNumber: 84,
11334
- columnNumber: 7
11335
- }
11336
- }), icon !== undefined ? /*#__PURE__*/React__default.createElement(StyledIconLeft$3, {
11337
- __self: undefined,
11338
- __source: {
11339
- fileName: _jsxFileName$E,
11340
- lineNumber: 94,
11341
- columnNumber: 31
11342
- }
11343
- }, icon) : null, /*#__PURE__*/React__default.createElement(TagComponent$1, {
11344
- __self: undefined,
11345
- __source: {
11346
- fileName: _jsxFileName$E,
11347
- lineNumber: 95,
11348
- columnNumber: 9
11349
- }
11350
- }, children), isRemovable ? /*#__PURE__*/React__default.createElement(StyledIconRight$1, {
11351
- disabled: disabled,
11352
- onClick: onRemove,
11353
- readOnly: readOnly,
11354
- __self: undefined,
11355
- __source: {
11356
- fileName: _jsxFileName$E,
11357
- lineNumber: 97,
11358
- columnNumber: 11
11359
- }
11360
- }, /*#__PURE__*/React__default.createElement(CloseOutline, {
11361
- size: 16,
11362
- color: colors$8.iconSecondary,
11363
- style: {
11364
- verticalAlign: 'middle'
11365
- },
11366
- __self: undefined,
11367
- __source: {
11368
- fileName: _jsxFileName$E,
11369
- lineNumber: 98,
11370
- columnNumber: 13
11371
- }
11372
- })) : null);
11259
+ children: [icon !== undefined ? jsx(StyledIconLeft$3, {
11260
+ children: icon
11261
+ }, void 0) : null, jsx(TagComponent$1, {
11262
+ children: children
11263
+ }, void 0), isRemovable ? jsx(StyledIconRight$1, Object.assign({
11264
+ disabled: disabled,
11265
+ onClick: onRemove,
11266
+ readOnly: readOnly
11267
+ }, {
11268
+ children: jsx(CloseOutline, {
11269
+ size: 16,
11270
+ color: colors$8.iconSecondary,
11271
+ style: {
11272
+ verticalAlign: 'middle'
11273
+ }
11274
+ }, void 0)
11275
+ }), void 0) : null]
11276
+ }), void 0);
11373
11277
  });
11374
- Tag.propTypes = {
11375
- size: PropTypes.string,
11376
- disabled: PropTypes.bool,
11377
- type: PropTypes.string,
11378
- icon: PropTypes.element,
11379
- isRemovable: PropTypes.bool,
11380
- onRemove: PropTypes.func,
11381
- onClick: PropTypes.func,
11382
- readOnly: PropTypes.bool
11383
- };
11384
11278
  Tag.defaultProps = {
11385
11279
  size: 'sm',
11386
11280
  isRemovable: false,
@@ -19816,6 +19710,7 @@ function InputDatePicker({
19816
19710
  onClose,
19817
19711
  mobileOnly,
19818
19712
  desktopOnly,
19713
+ advanceOptions,
19819
19714
  drawerCss,
19820
19715
  drawerContentCss
19821
19716
  }) {
@@ -19907,20 +19802,22 @@ function InputDatePicker({
19907
19802
  }
19908
19803
  };
19909
19804
  const renderDatePicker = () => {
19805
+ const options = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
19806
+ const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
19910
19807
  const handleDatePickerChange = value => {
19911
19808
  if (showRangeControl || type === 'range_picker') {
19912
19809
  if (rangePickerType === 'monthly') {
19913
19810
  dispatch({
19914
19811
  type: 'UPDATE',
19915
- payload: advancePickerDate('RANGE_MONTH', value)
19812
+ payload: advancePickerReducer('RANGE_MONTH', value)
19916
19813
  });
19917
- onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_MONTH', value));
19814
+ onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerReducer('RANGE_MONTH', value));
19918
19815
  } else {
19919
19816
  dispatch({
19920
19817
  type: 'UPDATE',
19921
- payload: advancePickerDate('RANGE_WEEK', value)
19818
+ payload: advancePickerReducer('RANGE_WEEK', value)
19922
19819
  });
19923
- onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_WEEK', value));
19820
+ onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerReducer('RANGE_WEEK', value));
19924
19821
  }
19925
19822
  } else {
19926
19823
  dispatch({
@@ -19932,10 +19829,10 @@ function InputDatePicker({
19932
19829
  };
19933
19830
  return jsx(DatePicker, {
19934
19831
  advanceView: type === ADVANCE_PICKER && (!advanceView ? jsx(AdvancedOption, {
19935
- options: language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn,
19832
+ options: (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.options) || options,
19936
19833
  disabled: disabled,
19937
19834
  optionHandler: value => {
19938
- const reducedResult = advancePickerDate(value, undefined);
19835
+ const reducedResult = advancePickerReducer(value, undefined);
19939
19836
  const dateAsString = moment(reducedResult[1]).format('YYYY-MM-DD');
19940
19837
  const payload = [reducedResult[0], moment(`${dateAsString} 23:59`, 'YYYY-MM-DD HH:mm').toDate()];
19941
19838
  dispatch({
@@ -20181,7 +20078,8 @@ const InputDateRange = /*#__PURE__*/React.forwardRef(({
20181
20078
  placement: _placement = 'bottom',
20182
20079
  readOnly: _readOnly = false,
20183
20080
  isInvalid: _isInvalid = false,
20184
- css
20081
+ css,
20082
+ advanceOptions
20185
20083
  }, ref) => {
20186
20084
  const {
20187
20085
  t,
@@ -20189,13 +20087,14 @@ const InputDateRange = /*#__PURE__*/React.forwardRef(({
20189
20087
  } = useTranslation('translation');
20190
20088
  const language = i18n.language;
20191
20089
  const pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
20090
+ const advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
20192
20091
  return jsx(InputSelect, {
20193
- option: pickerOptions.map(option => ({
20092
+ option: ((advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.options) || pickerOptions).map(option => ({
20194
20093
  name: option.label,
20195
20094
  value: option.value
20196
20095
  })),
20197
20096
  onChange: selectedOption => {
20198
- if (onChange) onChange(advancePickerDate(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
20097
+ if (onChange) onChange(advancePickerReducer(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
20199
20098
  },
20200
20099
  placeholder: placeholder || t('placeholder.select', 'Pilih'),
20201
20100
  size: _size,
@@ -27968,7 +27867,8 @@ const Upload = ({
27968
27867
  imageCompression,
27969
27868
  hiddenToggleAspect,
27970
27869
  hiddenPreview,
27971
- fullAspectCrop
27870
+ fullAspectCrop,
27871
+ isDefaultCustomRatio
27972
27872
  }) => {
27973
27873
  const {
27974
27874
  t
@@ -27984,7 +27884,7 @@ const Upload = ({
27984
27884
  const [error, setError] = useState(null);
27985
27885
  const [crop, setCrop] = useState(null);
27986
27886
  const [completedCrop, setCompletedCrop] = useState(null);
27987
- const [aspect, setAspect] = useState(1);
27887
+ const [aspect, setAspect] = useState(isDefaultCustomRatio ? 0 : 1);
27988
27888
  const [isLoading, setIsLoading] = useState(false);
27989
27889
  const [cropperImgRatio, setCropperImgRatio] = useState(null);
27990
27890
  useEffect(() => {
@@ -28222,7 +28122,7 @@ const Upload = ({
28222
28122
  img.type = files == null || (_files$2 = files[0]) == null ? void 0 : _files$2.type;
28223
28123
  img.onload = () => {
28224
28124
  const imgRatio = img.width / img.height;
28225
- setAspect(ratio || imgRatio);
28125
+ // setAspect(imgRatio);
28226
28126
  setCropperImgRatio(imgRatio);
28227
28127
  if (onBeforeCrop) {
28228
28128
  var _onBeforeCrop;
@@ -28397,7 +28297,7 @@ const Upload = ({
28397
28297
  __self: this,
28398
28298
  __source: {
28399
28299
  fileName: _jsxFileName$9,
28400
- lineNumber: 611,
28300
+ lineNumber: 612,
28401
28301
  columnNumber: 7
28402
28302
  }
28403
28303
  }, /*#__PURE__*/React__default.createElement(ButtonText, {
@@ -28407,7 +28307,7 @@ const Upload = ({
28407
28307
  __self: this,
28408
28308
  __source: {
28409
28309
  fileName: _jsxFileName$9,
28410
- lineNumber: 612,
28310
+ lineNumber: 613,
28411
28311
  columnNumber: 9
28412
28312
  }
28413
28313
  }, replaceLabel && replaceLabel.length > 0 ? replaceLabel : t('replaceLabel', 'Ubah Berkas')));
@@ -28422,7 +28322,7 @@ const Upload = ({
28422
28322
  __self: undefined,
28423
28323
  __source: {
28424
28324
  fileName: _jsxFileName$9,
28425
- lineNumber: 622,
28325
+ lineNumber: 623,
28426
28326
  columnNumber: 16
28427
28327
  }
28428
28328
  });
@@ -28433,7 +28333,7 @@ const Upload = ({
28433
28333
  __self: undefined,
28434
28334
  __source: {
28435
28335
  fileName: _jsxFileName$9,
28436
- lineNumber: 625,
28336
+ lineNumber: 626,
28437
28337
  columnNumber: 9
28438
28338
  }
28439
28339
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -28443,7 +28343,7 @@ const Upload = ({
28443
28343
  __self: undefined,
28444
28344
  __source: {
28445
28345
  fileName: _jsxFileName$9,
28446
- lineNumber: 626,
28346
+ lineNumber: 627,
28447
28347
  columnNumber: 11
28448
28348
  }
28449
28349
  }, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -28452,7 +28352,7 @@ const Upload = ({
28452
28352
  __self: undefined,
28453
28353
  __source: {
28454
28354
  fileName: _jsxFileName$9,
28455
- lineNumber: 627,
28355
+ lineNumber: 628,
28456
28356
  columnNumber: 27
28457
28357
  }
28458
28358
  }), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
@@ -28465,7 +28365,7 @@ const Upload = ({
28465
28365
  __self: undefined,
28466
28366
  __source: {
28467
28367
  fileName: _jsxFileName$9,
28468
- lineNumber: 629,
28368
+ lineNumber: 630,
28469
28369
  columnNumber: 15
28470
28370
  }
28471
28371
  }, /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -28474,7 +28374,7 @@ const Upload = ({
28474
28374
  __self: undefined,
28475
28375
  __source: {
28476
28376
  fileName: _jsxFileName$9,
28477
- lineNumber: 637,
28377
+ lineNumber: 638,
28478
28378
  columnNumber: 17
28479
28379
  }
28480
28380
  })), /*#__PURE__*/React__default.createElement(Image, {
@@ -28484,7 +28384,7 @@ const Upload = ({
28484
28384
  __self: undefined,
28485
28385
  __source: {
28486
28386
  fileName: _jsxFileName$9,
28487
- lineNumber: 640,
28387
+ lineNumber: 641,
28488
28388
  columnNumber: 13
28489
28389
  }
28490
28390
  })), !disabled && renderButtonReplace(index));
@@ -28501,7 +28401,7 @@ const Upload = ({
28501
28401
  __self: undefined,
28502
28402
  __source: {
28503
28403
  fileName: _jsxFileName$9,
28504
- lineNumber: 651,
28404
+ lineNumber: 652,
28505
28405
  columnNumber: 16
28506
28406
  }
28507
28407
  });
@@ -28511,7 +28411,7 @@ const Upload = ({
28511
28411
  __self: undefined,
28512
28412
  __source: {
28513
28413
  fileName: _jsxFileName$9,
28514
- lineNumber: 654,
28414
+ lineNumber: 655,
28515
28415
  columnNumber: 9
28516
28416
  }
28517
28417
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -28521,7 +28421,7 @@ const Upload = ({
28521
28421
  __self: undefined,
28522
28422
  __source: {
28523
28423
  fileName: _jsxFileName$9,
28524
- lineNumber: 655,
28424
+ lineNumber: 656,
28525
28425
  columnNumber: 11
28526
28426
  }
28527
28427
  }, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -28530,7 +28430,7 @@ const Upload = ({
28530
28430
  __self: undefined,
28531
28431
  __source: {
28532
28432
  fileName: _jsxFileName$9,
28533
- lineNumber: 656,
28433
+ lineNumber: 657,
28534
28434
  columnNumber: 27
28535
28435
  }
28536
28436
  }), /*#__PURE__*/React__default.createElement(Box, {
@@ -28543,7 +28443,7 @@ const Upload = ({
28543
28443
  __self: undefined,
28544
28444
  __source: {
28545
28445
  fileName: _jsxFileName$9,
28546
- lineNumber: 657,
28446
+ lineNumber: 658,
28547
28447
  columnNumber: 13
28548
28448
  }
28549
28449
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -28553,14 +28453,14 @@ const Upload = ({
28553
28453
  __self: undefined,
28554
28454
  __source: {
28555
28455
  fileName: _jsxFileName$9,
28556
- lineNumber: 665,
28456
+ lineNumber: 666,
28557
28457
  columnNumber: 15
28558
28458
  }
28559
28459
  }, /*#__PURE__*/React__default.createElement(FileExtension, {
28560
28460
  __self: undefined,
28561
28461
  __source: {
28562
28462
  fileName: _jsxFileName$9,
28563
- lineNumber: 666,
28463
+ lineNumber: 667,
28564
28464
  columnNumber: 17
28565
28465
  }
28566
28466
  }, ".", item == null || (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
@@ -28568,7 +28468,7 @@ const Upload = ({
28568
28468
  __self: undefined,
28569
28469
  __source: {
28570
28470
  fileName: _jsxFileName$9,
28571
- lineNumber: 667,
28471
+ lineNumber: 668,
28572
28472
  columnNumber: 17
28573
28473
  }
28574
28474
  }, /*#__PURE__*/React__default.createElement(Text, {
@@ -28583,7 +28483,7 @@ const Upload = ({
28583
28483
  __self: undefined,
28584
28484
  __source: {
28585
28485
  fileName: _jsxFileName$9,
28586
- lineNumber: 668,
28486
+ lineNumber: 669,
28587
28487
  columnNumber: 19
28588
28488
  }
28589
28489
  }, item.name)))), !hiddenPreview && /*#__PURE__*/React__default.createElement(Box, {
@@ -28596,7 +28496,7 @@ const Upload = ({
28596
28496
  __self: undefined,
28597
28497
  __source: {
28598
28498
  fileName: _jsxFileName$9,
28599
- lineNumber: 684,
28499
+ lineNumber: 685,
28600
28500
  columnNumber: 15
28601
28501
  }
28602
28502
  }, /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -28605,7 +28505,7 @@ const Upload = ({
28605
28505
  __self: undefined,
28606
28506
  __source: {
28607
28507
  fileName: _jsxFileName$9,
28608
- lineNumber: 692,
28508
+ lineNumber: 693,
28609
28509
  columnNumber: 17
28610
28510
  }
28611
28511
  })), /*#__PURE__*/React__default.createElement(Blank, {
@@ -28613,7 +28513,7 @@ const Upload = ({
28613
28513
  __self: undefined,
28614
28514
  __source: {
28615
28515
  fileName: _jsxFileName$9,
28616
- lineNumber: 695,
28516
+ lineNumber: 696,
28617
28517
  columnNumber: 13
28618
28518
  }
28619
28519
  })), !disabled && renderButtonReplace(index));
@@ -28628,7 +28528,7 @@ const Upload = ({
28628
28528
  __self: this,
28629
28529
  __source: {
28630
28530
  fileName: _jsxFileName$9,
28631
- lineNumber: 706,
28531
+ lineNumber: 707,
28632
28532
  columnNumber: 7
28633
28533
  }
28634
28534
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -28642,7 +28542,7 @@ const Upload = ({
28642
28542
  __self: this,
28643
28543
  __source: {
28644
28544
  fileName: _jsxFileName$9,
28645
- lineNumber: 707,
28545
+ lineNumber: 708,
28646
28546
  columnNumber: 9
28647
28547
  }
28648
28548
  }, /*#__PURE__*/React__default.createElement(LoadingBar, {
@@ -28668,7 +28568,7 @@ const Upload = ({
28668
28568
  __self: this,
28669
28569
  __source: {
28670
28570
  fileName: _jsxFileName$9,
28671
- lineNumber: 708,
28571
+ lineNumber: 709,
28672
28572
  columnNumber: 11
28673
28573
  }
28674
28574
  }), /*#__PURE__*/React__default.createElement(Text, {
@@ -28676,14 +28576,14 @@ const Upload = ({
28676
28576
  __self: this,
28677
28577
  __source: {
28678
28578
  fileName: _jsxFileName$9,
28679
- lineNumber: 721,
28579
+ lineNumber: 722,
28680
28580
  columnNumber: 11
28681
28581
  }
28682
28582
  }, `${progress <= 100 ? progress : 100}%`), /*#__PURE__*/React__default.createElement(Text, {
28683
28583
  __self: this,
28684
28584
  __source: {
28685
28585
  fileName: _jsxFileName$9,
28686
- lineNumber: 722,
28586
+ lineNumber: 723,
28687
28587
  columnNumber: 11
28688
28588
  }
28689
28589
  }, t('uploadingLabel', 'Berkas sedang diunggah'))));
@@ -28695,7 +28595,7 @@ const Upload = ({
28695
28595
  __self: this,
28696
28596
  __source: {
28697
28597
  fileName: _jsxFileName$9,
28698
- lineNumber: 730,
28598
+ lineNumber: 731,
28699
28599
  columnNumber: 7
28700
28600
  }
28701
28601
  }, /*#__PURE__*/React__default.createElement(ContainerUpload, {
@@ -28711,7 +28611,7 @@ const Upload = ({
28711
28611
  __self: this,
28712
28612
  __source: {
28713
28613
  fileName: _jsxFileName$9,
28714
- lineNumber: 731,
28614
+ lineNumber: 732,
28715
28615
  columnNumber: 9
28716
28616
  }
28717
28617
  }, /*#__PURE__*/React__default.createElement(Input$2, {
@@ -28723,21 +28623,21 @@ const Upload = ({
28723
28623
  __self: this,
28724
28624
  __source: {
28725
28625
  fileName: _jsxFileName$9,
28726
- lineNumber: 742,
28626
+ lineNumber: 743,
28727
28627
  columnNumber: 11
28728
28628
  }
28729
28629
  }), /*#__PURE__*/React__default.createElement(Children, {
28730
28630
  __self: this,
28731
28631
  __source: {
28732
28632
  fileName: _jsxFileName$9,
28733
- lineNumber: 743,
28633
+ lineNumber: 744,
28734
28634
  columnNumber: 11
28735
28635
  }
28736
28636
  }, children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
28737
28637
  __self: this,
28738
28638
  __source: {
28739
28639
  fileName: _jsxFileName$9,
28740
- lineNumber: 745,
28640
+ lineNumber: 746,
28741
28641
  columnNumber: 15
28742
28642
  }
28743
28643
  }, /*#__PURE__*/React__default.createElement(IconCard, {
@@ -28746,7 +28646,7 @@ const Upload = ({
28746
28646
  __self: this,
28747
28647
  __source: {
28748
28648
  fileName: _jsxFileName$9,
28749
- lineNumber: 746,
28649
+ lineNumber: 747,
28750
28650
  columnNumber: 17
28751
28651
  }
28752
28652
  }, /*#__PURE__*/React__default.createElement(UploadOutline, {
@@ -28754,7 +28654,7 @@ const Upload = ({
28754
28654
  __self: this,
28755
28655
  __source: {
28756
28656
  fileName: _jsxFileName$9,
28757
- lineNumber: 747,
28657
+ lineNumber: 748,
28758
28658
  columnNumber: 19
28759
28659
  }
28760
28660
  })), /*#__PURE__*/React__default.createElement(Text, {
@@ -28764,7 +28664,7 @@ const Upload = ({
28764
28664
  __self: this,
28765
28665
  __source: {
28766
28666
  fileName: _jsxFileName$9,
28767
- lineNumber: 749,
28667
+ lineNumber: 750,
28768
28668
  columnNumber: 17
28769
28669
  }
28770
28670
  }, placeholder != null ? placeholder : t('uploadPlaceholder', 'Pilih atau letakkan berkas di sini'))))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
@@ -28774,7 +28674,7 @@ const Upload = ({
28774
28674
  __self: this,
28775
28675
  __source: {
28776
28676
  fileName: _jsxFileName$9,
28777
- lineNumber: 756,
28677
+ lineNumber: 757,
28778
28678
  columnNumber: 19
28779
28679
  }
28780
28680
  }, error));
@@ -28785,7 +28685,7 @@ const Upload = ({
28785
28685
  __self: this,
28786
28686
  __source: {
28787
28687
  fileName: _jsxFileName$9,
28788
- lineNumber: 763,
28688
+ lineNumber: 764,
28789
28689
  columnNumber: 7
28790
28690
  }
28791
28691
  }, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
@@ -28793,7 +28693,7 @@ const Upload = ({
28793
28693
  __self: this,
28794
28694
  __source: {
28795
28695
  fileName: _jsxFileName$9,
28796
- lineNumber: 764,
28696
+ lineNumber: 765,
28797
28697
  columnNumber: 9
28798
28698
  }
28799
28699
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -28801,7 +28701,7 @@ const Upload = ({
28801
28701
  __self: this,
28802
28702
  __source: {
28803
28703
  fileName: _jsxFileName$9,
28804
- lineNumber: 765,
28704
+ lineNumber: 766,
28805
28705
  columnNumber: 11
28806
28706
  }
28807
28707
  })), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
@@ -28814,7 +28714,7 @@ const Upload = ({
28814
28714
  __self: this,
28815
28715
  __source: {
28816
28716
  fileName: _jsxFileName$9,
28817
- lineNumber: 767,
28717
+ lineNumber: 768,
28818
28718
  columnNumber: 9
28819
28719
  }
28820
28720
  }, cropperTitle || t('cropperTitle', 'Potong Gambar')), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
@@ -28826,7 +28726,7 @@ const Upload = ({
28826
28726
  __self: this,
28827
28727
  __source: {
28828
28728
  fileName: _jsxFileName$9,
28829
- lineNumber: 770,
28729
+ lineNumber: 771,
28830
28730
  columnNumber: 9
28831
28731
  }
28832
28732
  }, /*#__PURE__*/React__default.createElement(ReactCrop, {
@@ -28837,7 +28737,7 @@ const Upload = ({
28837
28737
  __self: this,
28838
28738
  __source: {
28839
28739
  fileName: _jsxFileName$9,
28840
- lineNumber: 771,
28740
+ lineNumber: 772,
28841
28741
  columnNumber: 11
28842
28742
  }
28843
28743
  }, /*#__PURE__*/React__default.createElement(Image, {
@@ -28851,14 +28751,14 @@ const Upload = ({
28851
28751
  __self: this,
28852
28752
  __source: {
28853
28753
  fileName: _jsxFileName$9,
28854
- lineNumber: 772,
28754
+ lineNumber: 773,
28855
28755
  columnNumber: 13
28856
28756
  }
28857
28757
  }))), /*#__PURE__*/React__default.createElement(ModalDialogFooter, {
28858
28758
  __self: this,
28859
28759
  __source: {
28860
28760
  fileName: _jsxFileName$9,
28861
- lineNumber: 775,
28761
+ lineNumber: 776,
28862
28762
  columnNumber: 9
28863
28763
  }
28864
28764
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -28870,22 +28770,22 @@ const Upload = ({
28870
28770
  __self: this,
28871
28771
  __source: {
28872
28772
  fileName: _jsxFileName$9,
28873
- lineNumber: 776,
28773
+ lineNumber: 777,
28874
28774
  columnNumber: 11
28875
28775
  }
28876
28776
  }, hiddenToggleAspect ? /*#__PURE__*/React__default.createElement(Box, {
28877
28777
  __self: this,
28878
28778
  __source: {
28879
28779
  fileName: _jsxFileName$9,
28880
- lineNumber: 778,
28780
+ lineNumber: 779,
28881
28781
  columnNumber: 15
28882
28782
  }
28883
28783
  }) : /*#__PURE__*/React__default.createElement(Tooltip$1, {
28884
- label: "Aspect Ratio",
28784
+ label: "Default Crop Ratio",
28885
28785
  __self: this,
28886
28786
  __source: {
28887
28787
  fileName: _jsxFileName$9,
28888
- lineNumber: 780,
28788
+ lineNumber: 781,
28889
28789
  columnNumber: 15
28890
28790
  }
28891
28791
  }, /*#__PURE__*/React__default.createElement(ImageOutline, {
@@ -28897,7 +28797,7 @@ const Upload = ({
28897
28797
  __self: this,
28898
28798
  __source: {
28899
28799
  fileName: _jsxFileName$9,
28900
- lineNumber: 781,
28800
+ lineNumber: 782,
28901
28801
  columnNumber: 17
28902
28802
  }
28903
28803
  })), /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -28905,7 +28805,7 @@ const Upload = ({
28905
28805
  __self: this,
28906
28806
  __source: {
28907
28807
  fileName: _jsxFileName$9,
28908
- lineNumber: 788,
28808
+ lineNumber: 789,
28909
28809
  columnNumber: 13
28910
28810
  }
28911
28811
  }, /*#__PURE__*/React__default.createElement(Button$4, {
@@ -28914,7 +28814,7 @@ const Upload = ({
28914
28814
  __self: this,
28915
28815
  __source: {
28916
28816
  fileName: _jsxFileName$9,
28917
- lineNumber: 789,
28817
+ lineNumber: 790,
28918
28818
  columnNumber: 15
28919
28819
  }
28920
28820
  }, t('label.cancel', 'Batal', {
@@ -28924,7 +28824,7 @@ const Upload = ({
28924
28824
  __self: this,
28925
28825
  __source: {
28926
28826
  fileName: _jsxFileName$9,
28927
- lineNumber: 792,
28827
+ lineNumber: 793,
28928
28828
  columnNumber: 15
28929
28829
  }
28930
28830
  }, t('save', 'Simpan', {
@@ -28941,7 +28841,7 @@ const Upload = ({
28941
28841
  __self: undefined,
28942
28842
  __source: {
28943
28843
  fileName: _jsxFileName$9,
28944
- lineNumber: 801,
28844
+ lineNumber: 802,
28945
28845
  columnNumber: 5
28946
28846
  }
28947
28847
  }, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default.createElement(UploadProgress, {
@@ -28950,7 +28850,7 @@ const Upload = ({
28950
28850
  __self: undefined,
28951
28851
  __source: {
28952
28852
  fileName: _jsxFileName$9,
28953
- lineNumber: 804,
28853
+ lineNumber: 805,
28954
28854
  columnNumber: 32
28955
28855
  }
28956
28856
  }) : renderUpload(), showCropper && renderCropper());
@@ -29115,7 +29015,11 @@ Upload.propTypes = {
29115
29015
  /**
29116
29016
  Auto full aspect ratio cropper.
29117
29017
  */
29118
- fullAspectCrop: PropTypes.bool
29018
+ fullAspectCrop: PropTypes.bool,
29019
+ /**
29020
+ Set custom ratio as Default view
29021
+ */
29022
+ isDefaultCustomRatio: PropTypes.bool
29119
29023
  };
29120
29024
  Upload.displayName = 'Upload';
29121
29025
 
@@ -51969,12 +51873,236 @@ function PrimitiveLoadingBar({
51969
51873
  }, void 0)]
51970
51874
  }), void 0);
51971
51875
  }
51876
+ const rotateKeyframe = keyframes({
51877
+ '100%': {
51878
+ transform: 'rotate(360deg)'
51879
+ }
51880
+ });
51881
+ const dashKeyframe = keyframes({
51882
+ '0%': {
51883
+ strokeDasharray: '0,125',
51884
+ strokeDashoffset: -8
51885
+ },
51886
+ '50%': {
51887
+ strokeDasharray: 125,
51888
+ strokeDashoffset: -10
51889
+ },
51890
+ '100%': {
51891
+ strokeDasharray: 125,
51892
+ strokeDashoffset: -125
51893
+ }
51894
+ });
51895
+ const LoadingContainer = styled$1('div', {
51896
+ position: 'absolute',
51897
+ width: 152,
51898
+ height: 152,
51899
+ top: '50%',
51900
+ left: '50%',
51901
+ transform: 'translate(-50%,-50%)'
51902
+ });
51903
+ const LogoSvg = styled$1('svg', {
51904
+ height: 152,
51905
+ position: 'absolute',
51906
+ width: 152
51907
+ });
51908
+ const LoadingSvg = styled$1('svg', {
51909
+ animation: `${rotateKeyframe} 2s linear infinite`,
51910
+ height: 152,
51911
+ position: 'absolute',
51912
+ width: 152,
51913
+ top: '-22px'
51914
+ });
51915
+ const LoadingBackground = styled$1('div', {
51916
+ background: 'conic-gradient(#fff5f6, #FF97A4, #02B4F3, #81CF77, #6D60AE, #FF6C53 320deg)',
51917
+ width: '100%',
51918
+ height: '100%'
51919
+ });
51920
+ const LoadingCircle = styled$1('circle', {
51921
+ stroke: 'white',
51922
+ strokeLinecap: 'round',
51923
+ transformOrigin: '50% 50%',
51924
+ transform: 'rotate(-102deg)',
51925
+ animation: `${dashKeyframe} 1.5s ease-in-out infinite`
51926
+ });
51927
+ const LoadingLabel = styled$1(Paragraph, {
51928
+ position: 'relative',
51929
+ top: 100
51930
+ });
51931
+ function CircularLoadingBar({
51932
+ label
51933
+ }) {
51934
+ return jsxs(LoadingContainer, {
51935
+ children: [jsxs(LogoSvg, Object.assign({
51936
+ xmlns: "http://www.w3.org/2000/svg",
51937
+ width: "152",
51938
+ height: "152",
51939
+ viewBox: "0 0 152 152",
51940
+ fill: "none"
51941
+ }, {
51942
+ children: [jsxs("g", Object.assign({
51943
+ filter: "url(#filter0_ddd_4303_695)"
51944
+ }, {
51945
+ children: [jsx("rect", {
51946
+ x: "46.0004",
51947
+ y: "23.9999",
51948
+ width: "60",
51949
+ height: "60",
51950
+ rx: "30",
51951
+ fill: "url(#paint0_linear_4303_695)"
51952
+ }, void 0), jsx("rect", {
51953
+ x: "46",
51954
+ y: "24",
51955
+ width: "60",
51956
+ height: "60",
51957
+ rx: "30",
51958
+ stroke: "url(#paint1_linear_4303_695)",
51959
+ "stroke-opacity": "0.99",
51960
+ "stroke-width": "5"
51961
+ }, void 0), jsx("path", {
51962
+ "fill-rule": "evenodd",
51963
+ "clip-rule": "evenodd",
51964
+ d: "M87.9634 61.5652C87.9634 63.0968 86.7378 64.3333 85.2195 64.3333C83.7013 64.3333 82.4757 63.0968 82.4757 61.5652C82.4757 58.1698 82.4757 54.7928 82.4757 51.4159C82.9329 51.4159 83.3902 51.4159 83.8476 51.4159C84.1768 51.4159 84.3414 51.1206 84.1037 50.8623C83.0426 49.6074 81.9633 48.371 80.9024 47.1162C80.628 46.7471 80.5366 46.821 80.2805 47.1162C79.2195 48.371 78.1402 49.6074 77.0793 50.8623C76.8415 51.1391 77.0061 51.4159 77.3354 51.4159C77.7927 51.4159 78.25 51.4159 78.7073 51.4159C78.7073 54.8113 78.7256 58.1698 78.7256 61.5652C78.7256 63.0968 77.5 64.3333 75.9817 64.3333C74.4634 64.3333 73.2378 63.0968 73.2378 61.5652C73.2378 59.1848 73.2561 56.8227 73.2561 54.4607C73.7134 54.4607 74.1707 54.4607 74.628 54.4607C74.9573 54.4607 75.1219 54.1654 74.8841 53.9071C73.8232 52.6522 72.7439 51.4159 71.6829 50.161C71.4085 49.792 71.3171 49.8658 71.061 50.161C70 51.4159 68.9207 52.6522 67.8598 53.9071C67.6219 54.1839 67.7866 54.4607 68.1159 54.4607C68.5732 54.4607 69.0305 54.4607 69.4878 54.4607V54.5899V61.5652C69.4878 63.0968 68.2622 64.3333 66.7439 64.3333C65.2256 64.3333 64 63.0968 64 61.5652V50.7515C64 48.7217 64.8232 46.8579 66.1585 45.5108C67.4939 44.1637 69.3415 43.3333 71.372 43.3333C73.128 43.3333 74.7378 43.9607 76 44.9941C77.2622 43.9607 78.872 43.3333 80.628 43.3333C82.6586 43.3333 84.5061 44.1637 85.8414 45.5108C87.1768 46.8579 88 48.7217 88 50.7515V61.5652H87.9634Z",
51965
+ fill: "white"
51966
+ }, void 0)]
51967
+ }), void 0), jsxs("defs", {
51968
+ children: [jsxs("filter", Object.assign({
51969
+ id: "filter0_ddd_4303_695",
51970
+ x: "0.5",
51971
+ y: "0.5",
51972
+ width: "151",
51973
+ height: "151",
51974
+ filterUnits: "userSpaceOnUse",
51975
+ "color-interpolation-filters": "sRGB"
51976
+ }, {
51977
+ children: [jsx("feFlood", {
51978
+ "flood-opacity": "0",
51979
+ result: "BackgroundImageFix"
51980
+ }, void 0), jsx("feColorMatrix", {
51981
+ in: "SourceAlpha",
51982
+ type: "matrix",
51983
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
51984
+ result: "hardAlpha"
51985
+ }, void 0), jsx("feOffset", {
51986
+ dy: "22"
51987
+ }, void 0), jsx("feGaussianBlur", {
51988
+ stdDeviation: "21.5"
51989
+ }, void 0), jsx("feColorMatrix", {
51990
+ type: "matrix",
51991
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
51992
+ }, void 0), jsx("feBlend", {
51993
+ mode: "normal",
51994
+ in2: "BackgroundImageFix",
51995
+ result: "effect1_dropShadow_4303_695"
51996
+ }, void 0), jsx("feColorMatrix", {
51997
+ in: "SourceAlpha",
51998
+ type: "matrix",
51999
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
52000
+ result: "hardAlpha"
52001
+ }, void 0), jsx("feOffset", {
52002
+ dy: "9"
52003
+ }, void 0), jsx("feGaussianBlur", {
52004
+ stdDeviation: "12"
52005
+ }, void 0), jsx("feColorMatrix", {
52006
+ type: "matrix",
52007
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"
52008
+ }, void 0), jsx("feBlend", {
52009
+ mode: "normal",
52010
+ in2: "effect1_dropShadow_4303_695",
52011
+ result: "effect2_dropShadow_4303_695"
52012
+ }, void 0), jsx("feColorMatrix", {
52013
+ in: "SourceAlpha",
52014
+ type: "matrix",
52015
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
52016
+ result: "hardAlpha"
52017
+ }, void 0), jsx("feOffset", {
52018
+ dy: "3"
52019
+ }, void 0), jsx("feGaussianBlur", {
52020
+ stdDeviation: "4.5"
52021
+ }, void 0), jsx("feColorMatrix", {
52022
+ type: "matrix",
52023
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"
52024
+ }, void 0), jsx("feBlend", {
52025
+ mode: "normal",
52026
+ in2: "effect2_dropShadow_4303_695",
52027
+ result: "effect3_dropShadow_4303_695"
52028
+ }, void 0), jsx("feBlend", {
52029
+ mode: "normal",
52030
+ in: "SourceGraphic",
52031
+ in2: "effect3_dropShadow_4303_695",
52032
+ result: "shape"
52033
+ }, void 0)]
52034
+ }), void 0), jsxs("linearGradient", Object.assign({
52035
+ id: "paint0_linear_4303_695",
52036
+ x1: "76.0004",
52037
+ y1: "23.9999",
52038
+ x2: "76.0004",
52039
+ y2: "83.9999",
52040
+ gradientUnits: "userSpaceOnUse"
52041
+ }, {
52042
+ children: [jsx("stop", {
52043
+ "stop-color": "#B3DCA7"
52044
+ }, void 0), jsx("stop", {
52045
+ offset: "1",
52046
+ "stop-color": "#22BDB6"
52047
+ }, void 0)]
52048
+ }), void 0), jsxs("linearGradient", Object.assign({
52049
+ id: "paint1_linear_4303_695",
52050
+ x1: "106",
52051
+ y1: "68.8332",
52052
+ x2: "50",
52053
+ y2: "37.3332",
52054
+ gradientUnits: "userSpaceOnUse"
52055
+ }, {
52056
+ children: [jsx("stop", {
52057
+ "stop-color": "#F4F4F4"
52058
+ }, void 0), jsx("stop", {
52059
+ offset: "1",
52060
+ "stop-color": "white"
52061
+ }, void 0)]
52062
+ }), void 0)]
52063
+ }, void 0)]
52064
+ }), void 0), jsxs(LoadingSvg, Object.assign({
52065
+ viewBox: "0 0 100 100",
52066
+ xmlns: "http://www.w3.org/2000/svg"
52067
+ }, {
52068
+ children: [jsx("defs", {
52069
+ children: jsx("mask", Object.assign({
52070
+ id: "mask"
52071
+ }, {
52072
+ children: jsx(LoadingCircle, {
52073
+ cx: "50",
52074
+ cy: "50",
52075
+ r: "20",
52076
+ fill: "none",
52077
+ "stroke-width": "4",
52078
+ "stroke-miterlimit": "10"
52079
+ }, void 0)
52080
+ }), void 0)
52081
+ }, void 0), jsx("foreignObject", Object.assign({
52082
+ x: "0",
52083
+ y: "0",
52084
+ width: "100",
52085
+ height: "100",
52086
+ mask: "url(#mask)"
52087
+ }, {
52088
+ children: jsx(LoadingBackground, {}, void 0)
52089
+ }), void 0)]
52090
+ }), void 0), label && jsx(LoadingLabel, Object.assign({
52091
+ color: "white",
52092
+ align: "center"
52093
+ }, {
52094
+ children: label
52095
+ }), void 0)]
52096
+ }, void 0);
52097
+ }
51972
52098
  let interval;
51973
52099
  function LoadingBar(props) {
51974
52100
  const {
51975
52101
  show,
51976
52102
  onCompleted,
51977
- interval: intervalTime
52103
+ interval: intervalTime,
52104
+ isPageLoader,
52105
+ pageLoaderLabel
51978
52106
  } = props;
51979
52107
  const [progress, setProgress] = useState(0);
51980
52108
  const [visibility, setVisibility] = useState(false);
@@ -52000,6 +52128,34 @@ function LoadingBar(props) {
52000
52128
  onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted();
52001
52129
  }
52002
52130
  }, [progress, onCompleted]);
52131
+ if (!show) return jsx(React__default.Fragment, {}, void 0);
52132
+ if (isPageLoader) {
52133
+ return jsx(ModalDialog, Object.assign({
52134
+ open: show,
52135
+ modal: true,
52136
+ allowPinchZoom: false,
52137
+ width: "100%",
52138
+ layer: 2000,
52139
+ isMobile: false,
52140
+ css: {
52141
+ borderRadius: '2px !important',
52142
+ '& > div': {
52143
+ backgroundColor: 'transparent !important',
52144
+ borderRadius: '2px !important'
52145
+ }
52146
+ }
52147
+ }, {
52148
+ children: jsx(ModalDialogContent, Object.assign({
52149
+ css: {
52150
+ padding: '$spacing-08 $spacing-11'
52151
+ }
52152
+ }, {
52153
+ children: jsx(CircularLoadingBar, {
52154
+ label: pageLoaderLabel
52155
+ }, void 0)
52156
+ }), void 0)
52157
+ }), void 0);
52158
+ }
52003
52159
  return typeof (props === null || props === void 0 ? void 0 : props.progress) === 'number' ? jsx(PrimitiveLoadingBar, Object.assign({}, props, {
52004
52160
  visibility: true
52005
52161
  }), void 0) : jsx(PrimitiveLoadingBar, Object.assign({}, props, {
@@ -52012,7 +52168,8 @@ LoadingBar.defaultProps = {
52012
52168
  show: false,
52013
52169
  interval: 100,
52014
52170
  description: 'Loading...',
52015
- size: 'md'
52171
+ size: 'md',
52172
+ isPageLoader: false
52016
52173
  };
52017
52174
 
52018
52175
  const Container$4 = styled(Flex$1, {
@@ -53080,7 +53237,6 @@ const ProductList = props => {
53080
53237
  label: tooltipLabel(name, variants)
53081
53238
  }, {
53082
53239
  children: jsxs(Box, Object.assign({
53083
- gap: 2,
53084
53240
  css: Object.assign({
53085
53241
  display: 'flex',
53086
53242
  alignItems: 'center',
@@ -53126,7 +53282,7 @@ const ProductList = props => {
53126
53282
  padding: '4px 8px',
53127
53283
  minWidth: 'unset',
53128
53284
  justifyContent: 'flex-start',
53129
- mr: 'auto'
53285
+ marginRight: 'auto'
53130
53286
  },
53131
53287
  type: "varian"
53132
53288
  }, {
@@ -56686,4 +56842,4 @@ const useToggle = initialValue => {
56686
56842
  return useReducer(toggleReducer, initialValue);
56687
56843
  };
56688
56844
 
56689
- 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, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, ResourceList as 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, rowExpanderMultipleColumn as RowExpanderMultipleColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, rowSelectionWithCallbackColumn as RowSelectionWithCallbackColumn, SINGLE_PICKER, ScrollSync, ScrollSyncNode, 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, ToastProvider, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
56845
+ 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, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, ResourceList as 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, Provider, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowExpanderMultipleColumn as RowExpanderMultipleColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, rowSelectionWithCallbackColumn as RowSelectionWithCallbackColumn, SINGLE_PICKER, ScrollSync, ScrollSyncNode, 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, ToastProvider, Tooltip$1 as Tooltip, TooltipBase, TooltipContent, TooltipTrigger, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };