@majoo-ui/react 1.60.8 → 1.60.9-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.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types'), require('@stitches/react'), require('@majoo-ui/core'), require('react-i18next'), require('moment'), require('@majoo-ui/icons'), require('react/jsx-runtime'), require('@radix-ui/react-avatar'), require('@radix-ui/react-tooltip'), require('@radix-ui/react-progress'), require('react-transition-group'), require('@majoo-ui/helpers'), require('superagent'), require('@radix-ui/react-label'), require('@radix-ui/react-checkbox'), require('@radix-ui/react-radio-group'), require('react-hook-form'), require('@radix-ui/react-switch'), require('downshift'), require('react-infinite-scroller'), require('lodash.debounce'), require('@floating-ui/react'), require('otp-input-react'), require('@radix-ui/react-dialog'), require('@radix-ui/react-toggle-group'), require('dayzed'), require('@radix-ui/react-separator'), require('@radix-ui/react-slider'), require('@radix-ui/react-tabs'), require('@radix-ui/react-accordion'), require('react-table'), require('react-dom'), require('@radix-ui/react-alert-dialog'), require('@radix-ui/react-dropdown-menu'), require('@radix-ui/react-aspect-ratio'), require('react-color/lib/components/common'), require('react-color/lib/helpers/color'), require('react-step-wizard'), require('@monsonjeremy/react-leaflet'), require('leaflet/dist/leaflet.css'), require('leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css'), require('leaflet-defaulticon-compatibility'), require('recharts'), require('draft-js'), require('react-draft-wysiwyg'), require('react-contextmenu'), require('react-loading-skeleton'), require('react-loading-skeleton/dist/skeleton.css'), require('react-virtual'), require('react-ui-scrollspy'), require('react-image-crop'), require('browser-image-compression'), require('react-table-sticky')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types', '@stitches/react', '@majoo-ui/core', 'react-i18next', 'moment', '@majoo-ui/icons', 'react/jsx-runtime', '@radix-ui/react-avatar', '@radix-ui/react-tooltip', '@radix-ui/react-progress', 'react-transition-group', '@majoo-ui/helpers', 'superagent', '@radix-ui/react-label', '@radix-ui/react-checkbox', '@radix-ui/react-radio-group', 'react-hook-form', '@radix-ui/react-switch', 'downshift', 'react-infinite-scroller', 'lodash.debounce', '@floating-ui/react', 'otp-input-react', '@radix-ui/react-dialog', '@radix-ui/react-toggle-group', 'dayzed', '@radix-ui/react-separator', '@radix-ui/react-slider', '@radix-ui/react-tabs', '@radix-ui/react-accordion', 'react-table', 'react-dom', '@radix-ui/react-alert-dialog', '@radix-ui/react-dropdown-menu', '@radix-ui/react-aspect-ratio', 'react-color/lib/components/common', 'react-color/lib/helpers/color', 'react-step-wizard', '@monsonjeremy/react-leaflet', 'leaflet/dist/leaflet.css', 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css', 'leaflet-defaulticon-compatibility', 'recharts', 'draft-js', 'react-draft-wysiwyg', 'react-contextmenu', 'react-loading-skeleton', 'react-loading-skeleton/dist/skeleton.css', 'react-virtual', 'react-ui-scrollspy', 'react-image-crop', 'browser-image-compression', 'react-table-sticky'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.React = {}, global.React, global.PropTypes, global.react, global.core, global.reactI18next, global.moment, global.icons, global.jsxRuntime, global.AvatarPrimitive, global.TooltipPrimitive, global.ProgressPrimitive, global.reactTransitionGroup, global.helpers, global.request, global.LabelPrimitive, global.CheckboxPrimitive, global.RadioGroupPrimitive, global.reactHookForm, global.SwitchPrimitive, global.Downshift, global.InfiniteScroll, global.debounce, global.react$1, global.OTPInput, global.DialogPrimitive, global.ToggleGroupPrimitive, global.dayzed, global.SeparatorPrimitive, global.SliderPrimitive, global.TabsPrimitive, global.AccordionPrimitive, global.reactTable, global.ReactDOM, global.ADialog, global.DropdownMenuPrimitive, global.AspectRatioPrimitive, global.common, global.color, global.StepWizard$1, global.reactLeaflet, null, null, null, global.recharts, global.draftJs, global.reactDraftWysiwyg, global.reactContextmenu, global.ReactSkeleton, null, global.reactVirtual, global.ScrollSpy, global.ReactCrop, global.imageCompressionComponent, global.reactTableSticky));
5
- })(this, (function (exports, React, PropTypes, react, core, reactI18next, moment, icons, jsxRuntime, AvatarPrimitive, TooltipPrimitive, ProgressPrimitive, reactTransitionGroup, helpers, request, LabelPrimitive, CheckboxPrimitive, RadioGroupPrimitive, reactHookForm, SwitchPrimitive, Downshift, InfiniteScroll, debounce, react$1, OTPInput, DialogPrimitive, ToggleGroupPrimitive, dayzed, SeparatorPrimitive, SliderPrimitive, TabsPrimitive, AccordionPrimitive, reactTable, ReactDOM, ADialog, DropdownMenuPrimitive, AspectRatioPrimitive, common, color, StepWizard$1, reactLeaflet, leaflet_css, leafletDefaulticonCompatibility_css, leafletDefaulticonCompatibility, recharts, draftJs, reactDraftWysiwyg, reactContextmenu, ReactSkeleton, skeleton_css, reactVirtual, ScrollSpy, ReactCrop, imageCompressionComponent, reactTableSticky) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types'), require('@stitches/react'), require('@majoo-ui/core'), require('react-i18next'), require('moment'), require('react/jsx-runtime'), require('@majoo-ui/icons'), require('@radix-ui/react-avatar'), require('@radix-ui/react-tooltip'), require('@radix-ui/react-progress'), require('react-transition-group'), require('@majoo-ui/helpers'), require('superagent'), require('@radix-ui/react-label'), require('@radix-ui/react-checkbox'), require('@radix-ui/react-radio-group'), require('react-hook-form'), require('@radix-ui/react-switch'), require('downshift'), require('react-infinite-scroller'), require('lodash.debounce'), require('@floating-ui/react'), require('otp-input-react'), require('@radix-ui/react-dialog'), require('@radix-ui/react-toggle-group'), require('dayzed'), require('@radix-ui/react-separator'), require('@radix-ui/react-slider'), require('@radix-ui/react-tabs'), require('@radix-ui/react-accordion'), require('react-table'), require('react-dom'), require('@radix-ui/react-alert-dialog'), require('@radix-ui/react-dropdown-menu'), require('@radix-ui/react-aspect-ratio'), require('react-color/lib/components/common'), require('react-color/lib/helpers/color'), require('react-step-wizard'), require('@monsonjeremy/react-leaflet'), require('leaflet/dist/leaflet.css'), require('leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css'), require('leaflet-defaulticon-compatibility'), require('recharts'), require('draft-js'), require('react-draft-wysiwyg'), require('react-contextmenu'), require('react-loading-skeleton'), require('react-loading-skeleton/dist/skeleton.css'), require('react-virtual'), require('react-ui-scrollspy'), require('react-image-crop'), require('browser-image-compression'), require('react-table-sticky')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types', '@stitches/react', '@majoo-ui/core', 'react-i18next', 'moment', 'react/jsx-runtime', '@majoo-ui/icons', '@radix-ui/react-avatar', '@radix-ui/react-tooltip', '@radix-ui/react-progress', 'react-transition-group', '@majoo-ui/helpers', 'superagent', '@radix-ui/react-label', '@radix-ui/react-checkbox', '@radix-ui/react-radio-group', 'react-hook-form', '@radix-ui/react-switch', 'downshift', 'react-infinite-scroller', 'lodash.debounce', '@floating-ui/react', 'otp-input-react', '@radix-ui/react-dialog', '@radix-ui/react-toggle-group', 'dayzed', '@radix-ui/react-separator', '@radix-ui/react-slider', '@radix-ui/react-tabs', '@radix-ui/react-accordion', 'react-table', 'react-dom', '@radix-ui/react-alert-dialog', '@radix-ui/react-dropdown-menu', '@radix-ui/react-aspect-ratio', 'react-color/lib/components/common', 'react-color/lib/helpers/color', 'react-step-wizard', '@monsonjeremy/react-leaflet', 'leaflet/dist/leaflet.css', 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css', 'leaflet-defaulticon-compatibility', 'recharts', 'draft-js', 'react-draft-wysiwyg', 'react-contextmenu', 'react-loading-skeleton', 'react-loading-skeleton/dist/skeleton.css', 'react-virtual', 'react-ui-scrollspy', 'react-image-crop', 'browser-image-compression', 'react-table-sticky'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.React = {}, global.React, global.PropTypes, global.react, global.core, global.reactI18next, global.moment, global.jsxRuntime, global.icons, global.AvatarPrimitive, global.TooltipPrimitive, global.ProgressPrimitive, global.reactTransitionGroup, global.helpers, global.request, global.LabelPrimitive, global.CheckboxPrimitive, global.RadioGroupPrimitive, global.reactHookForm, global.SwitchPrimitive, global.Downshift, global.InfiniteScroll, global.debounce, global.react$1, global.OTPInput, global.DialogPrimitive, global.ToggleGroupPrimitive, global.dayzed, global.SeparatorPrimitive, global.SliderPrimitive, global.TabsPrimitive, global.AccordionPrimitive, global.reactTable, global.ReactDOM, global.ADialog, global.DropdownMenuPrimitive, global.AspectRatioPrimitive, global.common, global.color, global.StepWizard$1, global.reactLeaflet, null, null, null, global.recharts, global.draftJs, global.reactDraftWysiwyg, global.reactContextmenu, global.ReactSkeleton, null, global.reactVirtual, global.ScrollSpy, global.ReactCrop, global.imageCompressionComponent, global.reactTableSticky));
5
+ })(this, (function (exports, React, PropTypes, react, core, reactI18next, moment, jsxRuntime, icons, AvatarPrimitive, TooltipPrimitive, ProgressPrimitive, reactTransitionGroup, helpers, request, LabelPrimitive, CheckboxPrimitive, RadioGroupPrimitive, reactHookForm, SwitchPrimitive, Downshift, InfiniteScroll, debounce, react$1, OTPInput, DialogPrimitive, ToggleGroupPrimitive, dayzed, SeparatorPrimitive, SliderPrimitive, TabsPrimitive, AccordionPrimitive, reactTable, ReactDOM, ADialog, DropdownMenuPrimitive, AspectRatioPrimitive, common, color, StepWizard$1, reactLeaflet, leaflet_css, leafletDefaulticonCompatibility_css, leafletDefaulticonCompatibility, recharts, draftJs, reactDraftWysiwyg, reactContextmenu, ReactSkeleton, skeleton_css, reactVirtual, ScrollSpy, ReactCrop, imageCompressionComponent, reactTableSticky) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -57,7 +57,7 @@
57
57
  var ReactCrop__default = /*#__PURE__*/_interopDefaultLegacy(ReactCrop);
58
58
  var imageCompressionComponent__default = /*#__PURE__*/_interopDefaultLegacy(imageCompressionComponent);
59
59
 
60
- var _jsxFileName$12 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
60
+ var _jsxFileName$$ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
61
61
  function ThemeProvider({
62
62
  theme,
63
63
  children
@@ -66,7 +66,7 @@
66
66
  className: theme,
67
67
  __self: this,
68
68
  __source: {
69
- fileName: _jsxFileName$12,
69
+ fileName: _jsxFileName$$,
70
70
  lineNumber: 5,
71
71
  columnNumber: 10
72
72
  }
@@ -1503,7 +1503,7 @@
1503
1503
  globalStyles();
1504
1504
  };
1505
1505
 
1506
- var _jsxFileName$11 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
1506
+ var _jsxFileName$_ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
1507
1507
  function MajooProvider({
1508
1508
  children,
1509
1509
  theme: theme$1 = theme,
@@ -1519,7 +1519,7 @@
1519
1519
  theme: theme$1,
1520
1520
  __self: this,
1521
1521
  __source: {
1522
- fileName: _jsxFileName$11,
1522
+ fileName: _jsxFileName$_,
1523
1523
  lineNumber: 14,
1524
1524
  columnNumber: 5
1525
1525
  }
@@ -1532,7 +1532,7 @@
1532
1532
  disableGlobalStyle: PropTypes__default["default"].bool
1533
1533
  };
1534
1534
 
1535
- const Box = styled('div', {
1535
+ var Box = styled('div', {
1536
1536
  variants: {
1537
1537
  mobileOnly: {
1538
1538
  true: {
@@ -1563,7 +1563,7 @@
1563
1563
  return variants;
1564
1564
  }
1565
1565
 
1566
- const Flex$1 = styled('div', {
1566
+ var Flex$1 = styled('div', {
1567
1567
  display: 'flex',
1568
1568
  variants: {
1569
1569
  direction: {
@@ -1628,30 +1628,48 @@
1628
1628
  flexWrap: 'wrap-reverse'
1629
1629
  }
1630
1630
  },
1631
- gap: seqNumberVariants$1(value => ({
1632
- gap: `$spacing-${value < 10 ? '0' + value : value}`
1633
- }), 12),
1634
- m: seqNumberVariants$1(value => ({
1635
- m: `$spacing-${value < 10 ? '0' + value : value}`
1636
- }), 12),
1637
- mt: seqNumberVariants$1(value => ({
1638
- mt: `$spacing-${value < 10 ? '0' + value : value}`
1639
- }), 12),
1640
- mb: seqNumberVariants$1(value => ({
1641
- mb: `$spacing-${value < 10 ? '0' + value : value}`
1642
- }), 12),
1643
- mr: seqNumberVariants$1(value => ({
1644
- mr: `$spacing-${value < 10 ? '0' + value : value}`
1645
- }), 12),
1646
- ml: seqNumberVariants$1(value => ({
1647
- ml: `$spacing-${value < 10 ? '0' + value : value}`
1648
- }), 12),
1649
- mx: seqNumberVariants$1(value => ({
1650
- mx: `$spacing-${value < 10 ? '0' + value : value}`
1651
- }), 12),
1652
- my: seqNumberVariants$1(value => ({
1653
- my: `$spacing-${value < 10 ? '0' + value : value}`
1654
- }), 12),
1631
+ gap: seqNumberVariants$1(function (value) {
1632
+ return {
1633
+ gap: "$spacing-".concat(value < 10 ? '0' + value : value)
1634
+ };
1635
+ }, 12),
1636
+ m: seqNumberVariants$1(function (value) {
1637
+ return {
1638
+ margin: "$spacing-".concat(value < 10 ? '0' + value : value)
1639
+ };
1640
+ }, 12),
1641
+ mt: seqNumberVariants$1(function (value) {
1642
+ return {
1643
+ marginTop: "$spacing-".concat(value < 10 ? '0' + value : value)
1644
+ };
1645
+ }, 12),
1646
+ mb: seqNumberVariants$1(function (value) {
1647
+ return {
1648
+ marginBottom: "$spacing-".concat(value < 10 ? '0' + value : value)
1649
+ };
1650
+ }, 12),
1651
+ mr: seqNumberVariants$1(function (value) {
1652
+ return {
1653
+ marginRight: "$spacing-".concat(value < 10 ? '0' + value : value)
1654
+ };
1655
+ }, 12),
1656
+ ml: seqNumberVariants$1(function (value) {
1657
+ return {
1658
+ marginLeft: "$spacing-".concat(value < 10 ? '0' + value : value)
1659
+ };
1660
+ }, 12),
1661
+ mx: seqNumberVariants$1(function (value) {
1662
+ return {
1663
+ marginRight: "$spacing-".concat(value < 10 ? '0' + value : value),
1664
+ marginLeft: "$spacing-".concat(value < 10 ? '0' + value : value)
1665
+ };
1666
+ }, 12),
1667
+ my: seqNumberVariants$1(function (value) {
1668
+ return {
1669
+ marginTop: "$spacing-".concat(value < 10 ? '0' + value : value),
1670
+ marginBottom: "$spacing-".concat(value < 10 ? '0' + value : value)
1671
+ };
1672
+ }, 12),
1655
1673
  mobileOnly: {
1656
1674
  true: {
1657
1675
  '@lg': {
@@ -1669,29 +1687,278 @@
1669
1687
  }
1670
1688
  }
1671
1689
  });
1672
- Flex$1.propTypes = {
1673
- direction: PropTypes__default["default"].string,
1674
- align: PropTypes__default["default"].string,
1675
- justify: PropTypes__default["default"].string,
1676
- wrap: PropTypes__default["default"].string,
1677
- gap: PropTypes__default["default"].number,
1678
- m: PropTypes__default["default"].number,
1679
- mt: PropTypes__default["default"].number,
1680
- mb: PropTypes__default["default"].number,
1681
- mr: PropTypes__default["default"].number,
1682
- ml: PropTypes__default["default"].number,
1683
- mx: PropTypes__default["default"].number,
1684
- my: PropTypes__default["default"].number
1685
- };
1686
1690
  Flex$1.defaultProps = {
1687
1691
  direction: 'row',
1688
1692
  align: 'stretch',
1689
1693
  justify: 'start',
1690
- wrap: 'noWrap',
1691
- gap: 0
1694
+ wrap: 'noWrap'
1692
1695
  };
1693
1696
  Flex$1.displayName = 'Flex';
1694
1697
 
1698
+ var GridComponent = styled('div', {
1699
+ display: 'grid',
1700
+ variants: {
1701
+ align: {
1702
+ start: {
1703
+ alignItems: 'start'
1704
+ },
1705
+ center: {
1706
+ alignItems: 'center'
1707
+ },
1708
+ end: {
1709
+ alignItems: 'end'
1710
+ },
1711
+ stretch: {
1712
+ alignItems: 'stretch'
1713
+ },
1714
+ baseline: {
1715
+ alignItems: 'baseline'
1716
+ }
1717
+ },
1718
+ justify: {
1719
+ start: {
1720
+ justifyContent: 'start'
1721
+ },
1722
+ center: {
1723
+ justifyContent: 'center'
1724
+ },
1725
+ end: {
1726
+ justifyContent: 'end'
1727
+ },
1728
+ between: {
1729
+ justifyContent: 'space-between'
1730
+ }
1731
+ },
1732
+ flow: {
1733
+ row: {
1734
+ gridAutoFlow: 'row'
1735
+ },
1736
+ column: {
1737
+ gridAutoFlow: 'column'
1738
+ },
1739
+ dense: {
1740
+ gridAutoFlow: 'dense'
1741
+ },
1742
+ rowDense: {
1743
+ gridAutoFlow: 'row dense'
1744
+ },
1745
+ columnDense: {
1746
+ gridAutoFlow: 'column dense'
1747
+ }
1748
+ },
1749
+ columns: seqNumberVariants$1(function (value) {
1750
+ return {
1751
+ gridTemplateColumns: "repeat(".concat(value, ", 1fr)")
1752
+ };
1753
+ }, 10),
1754
+ rows: seqNumberVariants$1(function (value) {
1755
+ return {
1756
+ gridTemplateRows: "repeat(".concat(value, ", 1fr)")
1757
+ };
1758
+ }, 10),
1759
+ placeItems: {
1760
+ stretch: {
1761
+ placeItems: 'stretch'
1762
+ },
1763
+ start: {
1764
+ placeItems: 'start'
1765
+ },
1766
+ end: {
1767
+ placeItems: 'end'
1768
+ },
1769
+ center: {
1770
+ placeItems: 'center'
1771
+ },
1772
+ left: {
1773
+ placeItems: 'left'
1774
+ },
1775
+ right: {
1776
+ placeItems: 'right'
1777
+ }
1778
+ },
1779
+ gap: {
1780
+ 1: {
1781
+ gap: '$spacing-03'
1782
+ },
1783
+ 2: {
1784
+ gap: '$spacing-05'
1785
+ },
1786
+ 3: {
1787
+ gap: '$spacing-06'
1788
+ },
1789
+ 4: {
1790
+ gap: '$spacing-07'
1791
+ },
1792
+ 5: {
1793
+ gap: '$spacing-08'
1794
+ },
1795
+ 6: {
1796
+ gap: '$spacing-09'
1797
+ },
1798
+ 7: {
1799
+ gap: '$spacing-10'
1800
+ },
1801
+ 8: {
1802
+ gap: '$spacing-11'
1803
+ },
1804
+ 9: {
1805
+ gap: '$spacing-12'
1806
+ }
1807
+ },
1808
+ gapX: {
1809
+ normal: {
1810
+ columnGap: 'normal'
1811
+ },
1812
+ 1: {
1813
+ columnGap: '$spacing-03'
1814
+ },
1815
+ 2: {
1816
+ columnGap: '$spacing-05'
1817
+ },
1818
+ 3: {
1819
+ columnGap: '$spacing-06'
1820
+ },
1821
+ 4: {
1822
+ columnGap: '$spacing-07'
1823
+ },
1824
+ 5: {
1825
+ columnGap: '$spacing-08'
1826
+ },
1827
+ 6: {
1828
+ columnGap: '$spacing-09'
1829
+ },
1830
+ 7: {
1831
+ columnGap: '$spacing-10'
1832
+ },
1833
+ 8: {
1834
+ columnGap: '$spacing-11'
1835
+ },
1836
+ 9: {
1837
+ columnGap: '$spacing-12'
1838
+ }
1839
+ },
1840
+ gapY: {
1841
+ 1: {
1842
+ rowGap: '$spacing-03'
1843
+ },
1844
+ 2: {
1845
+ rowGap: '$spacing-05'
1846
+ },
1847
+ 3: {
1848
+ rowGap: '$spacing-06'
1849
+ },
1850
+ 4: {
1851
+ rowGap: '$spacing-07'
1852
+ },
1853
+ 5: {
1854
+ rowGap: '$spacing-08'
1855
+ },
1856
+ 6: {
1857
+ rowGap: '$spacing-09'
1858
+ },
1859
+ 7: {
1860
+ rowGap: '$spacing-10'
1861
+ },
1862
+ 8: {
1863
+ rowGap: '$spacing-11'
1864
+ },
1865
+ 9: {
1866
+ rowGap: '$spacing-12'
1867
+ }
1868
+ },
1869
+ mobileOnly: {
1870
+ true: {
1871
+ '@lg': {
1872
+ display: 'none !important'
1873
+ }
1874
+ }
1875
+ },
1876
+ desktopOnly: {
1877
+ true: {
1878
+ display: 'none !important',
1879
+ '@lg': {
1880
+ display: 'grid !important'
1881
+ }
1882
+ }
1883
+ }
1884
+ }
1885
+ });
1886
+ var Grid = function Grid(_a) {
1887
+ var children = _a.children,
1888
+ props = __rest(_a, ["children"]);
1889
+ return jsxRuntime.jsx(GridComponent, __assign({}, props, {
1890
+ css: __assign(__assign({}, props.css), {
1891
+ gridAutoColumns: props.autoColumns,
1892
+ gridAutoRows: props.autoRows,
1893
+ gridTemplateColumns: props.templateColumns,
1894
+ gridTemplateRows: props.templateRows
1895
+ })
1896
+ }, {
1897
+ children: children
1898
+ }), void 0);
1899
+ };
1900
+ Grid.propTypes = {
1901
+ align: PropTypes__default["default"].string,
1902
+ justify: PropTypes__default["default"].string,
1903
+ autoColumns: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1904
+ autoRows: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1905
+ autoFlow: PropTypes__default["default"].string,
1906
+ templateColumns: PropTypes__default["default"].string,
1907
+ templateRows: PropTypes__default["default"].string,
1908
+ columns: PropTypes__default["default"].number,
1909
+ rows: PropTypes__default["default"].number,
1910
+ gap: PropTypes__default["default"].number,
1911
+ gapX: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1912
+ gapY: PropTypes__default["default"].number
1913
+ };
1914
+ Grid.displayName = 'Grid';
1915
+ function spanFn(value) {
1916
+ return value === 'auto' ? 'auto' : "span ".concat(value, "/span ").concat(value);
1917
+ }
1918
+ var GridItemComponent = styled('div', {
1919
+ variants: {
1920
+ colSpan: __assign({
1921
+ auto: spanFn('auto')
1922
+ }, seqNumberVariants$1(function (value) {
1923
+ return {
1924
+ gridColumn: spanFn(value)
1925
+ };
1926
+ }, 10)),
1927
+ rowSpan: __assign({
1928
+ auto: spanFn('auto')
1929
+ }, seqNumberVariants$1(function (value) {
1930
+ return {
1931
+ gridRow: spanFn(value)
1932
+ };
1933
+ }, 10))
1934
+ }
1935
+ });
1936
+ var GridItem = function GridItem(_a) {
1937
+ var children = _a.children,
1938
+ props = __rest(_a, ["children"]);
1939
+ return jsxRuntime.jsx(GridItemComponent, __assign({}, props, {
1940
+ css: __assign(__assign({}, props.css), {
1941
+ gridArea: props.area,
1942
+ gridColumnStart: props.colStart,
1943
+ gridColumnEnd: props.colEnd,
1944
+ gridRowStart: props.rowStart,
1945
+ gridRowEnd: props.rowEnd
1946
+ })
1947
+ }, {
1948
+ children: children
1949
+ }), void 0);
1950
+ };
1951
+ GridItem.propTypes = {
1952
+ gridArea: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1953
+ colSpan: PropTypes__default["default"].number,
1954
+ rowSpan: PropTypes__default["default"].number,
1955
+ colStart: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1956
+ colEnd: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1957
+ rowStart: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1958
+ rowEnd: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
1959
+ };
1960
+ GridItem.displayName = 'Grid Item';
1961
+
1695
1962
  function _extends() {
1696
1963
  _extends = Object.assign ? Object.assign.bind() : function (target) {
1697
1964
  for (var i = 1; i < arguments.length; i++) {
@@ -1722,279 +1989,8 @@
1722
1989
  return target;
1723
1990
  }
1724
1991
 
1725
- const _excluded$B = ["children"],
1726
- _excluded2$4 = ["children"];
1727
- var _jsxFileName$10 = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/grid/Grid.js";
1728
- const GridComponent = styled('div', {
1729
- display: 'grid',
1730
- variants: {
1731
- align: {
1732
- start: {
1733
- alignItems: 'start'
1734
- },
1735
- center: {
1736
- alignItems: 'center'
1737
- },
1738
- end: {
1739
- alignItems: 'end'
1740
- },
1741
- stretch: {
1742
- alignItems: 'stretch'
1743
- },
1744
- baseline: {
1745
- alignItems: 'baseline'
1746
- }
1747
- },
1748
- justify: {
1749
- start: {
1750
- justifyContent: 'start'
1751
- },
1752
- center: {
1753
- justifyContent: 'center'
1754
- },
1755
- end: {
1756
- justifyContent: 'end'
1757
- },
1758
- between: {
1759
- justifyContent: 'space-between'
1760
- }
1761
- },
1762
- flow: {
1763
- row: {
1764
- gridAutoFlow: 'row'
1765
- },
1766
- column: {
1767
- gridAutoFlow: 'column'
1768
- },
1769
- dense: {
1770
- gridAutoFlow: 'dense'
1771
- },
1772
- rowDense: {
1773
- gridAutoFlow: 'row dense'
1774
- },
1775
- columnDense: {
1776
- gridAutoFlow: 'column dense'
1777
- }
1778
- },
1779
- columns: seqNumberVariants$1(value => ({
1780
- gridTemplateColumns: `repeat(${value}, 1fr)`
1781
- }), 10),
1782
- rows: seqNumberVariants$1(value => ({
1783
- gridTemplateRows: `repeat(${value}, 1fr)`
1784
- }), 10),
1785
- placeItems: {
1786
- stretch: {
1787
- placeItems: 'stretch'
1788
- },
1789
- start: {
1790
- placeItems: 'start'
1791
- },
1792
- end: {
1793
- placeItems: 'end'
1794
- },
1795
- center: {
1796
- placeItems: 'center'
1797
- },
1798
- left: {
1799
- placeItems: 'left'
1800
- },
1801
- right: {
1802
- placeItems: 'right'
1803
- }
1804
- },
1805
- gap: {
1806
- 1: {
1807
- gap: '$spacing-03'
1808
- },
1809
- 2: {
1810
- gap: '$spacing-05'
1811
- },
1812
- 3: {
1813
- gap: '$spacing-06'
1814
- },
1815
- 4: {
1816
- gap: '$spacing-07'
1817
- },
1818
- 5: {
1819
- gap: '$spacing-08'
1820
- },
1821
- 6: {
1822
- gap: '$spacing-09'
1823
- },
1824
- 7: {
1825
- gap: '$spacing-10'
1826
- },
1827
- 8: {
1828
- gap: '$spacing-11'
1829
- },
1830
- 9: {
1831
- gap: '$spacing-12'
1832
- }
1833
- },
1834
- gapX: {
1835
- normal: {
1836
- columnGap: 'normal'
1837
- },
1838
- 1: {
1839
- columnGap: '$spacing-03'
1840
- },
1841
- 2: {
1842
- columnGap: '$spacing-05'
1843
- },
1844
- 3: {
1845
- columnGap: '$spacing-06'
1846
- },
1847
- 4: {
1848
- columnGap: '$spacing-07'
1849
- },
1850
- 5: {
1851
- columnGap: '$spacing-08'
1852
- },
1853
- 6: {
1854
- columnGap: '$spacing-09'
1855
- },
1856
- 7: {
1857
- columnGap: '$spacing-10'
1858
- },
1859
- 8: {
1860
- columnGap: '$spacing-11'
1861
- },
1862
- 9: {
1863
- columnGap: '$spacing-12'
1864
- }
1865
- },
1866
- gapY: {
1867
- 1: {
1868
- rowGap: '$spacing-03'
1869
- },
1870
- 2: {
1871
- rowGap: '$spacing-05'
1872
- },
1873
- 3: {
1874
- rowGap: '$spacing-06'
1875
- },
1876
- 4: {
1877
- rowGap: '$spacing-07'
1878
- },
1879
- 5: {
1880
- rowGap: '$spacing-08'
1881
- },
1882
- 6: {
1883
- rowGap: '$spacing-09'
1884
- },
1885
- 7: {
1886
- rowGap: '$spacing-10'
1887
- },
1888
- 8: {
1889
- rowGap: '$spacing-11'
1890
- },
1891
- 9: {
1892
- rowGap: '$spacing-12'
1893
- }
1894
- },
1895
- mobileOnly: {
1896
- true: {
1897
- '@lg': {
1898
- display: 'none !important'
1899
- }
1900
- }
1901
- },
1902
- desktopOnly: {
1903
- true: {
1904
- display: 'none !important',
1905
- '@lg': {
1906
- display: 'grid !important'
1907
- }
1908
- }
1909
- }
1910
- }
1911
- });
1912
- const Grid = _ref => {
1913
- let {
1914
- children
1915
- } = _ref,
1916
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1917
- return /*#__PURE__*/React__default["default"].createElement(GridComponent, _extends({}, props, {
1918
- css: Object.assign({}, props.css, {
1919
- gridAutoColumns: props.autoColumns,
1920
- gridAutoRows: props.autoRows,
1921
- gridTemplateColumns: props.templateColumns,
1922
- gridTemplateRows: props.templateRows
1923
- }),
1924
- __self: undefined,
1925
- __source: {
1926
- fileName: _jsxFileName$10,
1927
- lineNumber: 200,
1928
- columnNumber: 5
1929
- }
1930
- }), children);
1931
- };
1932
- Grid.propTypes = {
1933
- align: PropTypes__default["default"].string,
1934
- justify: PropTypes__default["default"].string,
1935
- autoColumns: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1936
- autoRows: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1937
- autoFlow: PropTypes__default["default"].string,
1938
- templateColumns: PropTypes__default["default"].string,
1939
- templateRows: PropTypes__default["default"].string,
1940
- columns: PropTypes__default["default"].number,
1941
- rows: PropTypes__default["default"].number,
1942
- gap: PropTypes__default["default"].number,
1943
- gapX: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1944
- gapY: PropTypes__default["default"].number
1945
- };
1946
- Grid.displayName = 'Grid';
1947
- function spanFn(value) {
1948
- return value === 'auto' ? 'auto' : `span ${value}/span ${value}`;
1949
- }
1950
- const GridItemComponent = styled('div', {
1951
- variants: {
1952
- colSpan: Object.assign({
1953
- auto: spanFn('auto')
1954
- }, seqNumberVariants$1(value => ({
1955
- gridColumn: spanFn(value)
1956
- }), 10)),
1957
- rowSpan: Object.assign({
1958
- auto: spanFn('auto')
1959
- }, seqNumberVariants$1(value => ({
1960
- gridRow: spanFn(value)
1961
- }), 10))
1962
- }
1963
- });
1964
- const GridItem = _ref2 => {
1965
- let {
1966
- children
1967
- } = _ref2,
1968
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
1969
- return /*#__PURE__*/React__default["default"].createElement(GridItemComponent, _extends({}, props, {
1970
- css: Object.assign({}, props.css, {
1971
- gridArea: props.area,
1972
- gridColumnStart: props.colStart,
1973
- gridColumnEnd: props.colEnd,
1974
- gridRowStart: props.rowStart,
1975
- gridRowEnd: props.rowEnd
1976
- }),
1977
- __self: undefined,
1978
- __source: {
1979
- fileName: _jsxFileName$10,
1980
- lineNumber: 265,
1981
- columnNumber: 5
1982
- }
1983
- }), children);
1984
- };
1985
- GridItem.propTypes = {
1986
- gridArea: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1987
- colSpan: PropTypes__default["default"].number,
1988
- rowSpan: PropTypes__default["default"].number,
1989
- colStart: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1990
- colEnd: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1991
- rowStart: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1992
- rowEnd: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
1993
- };
1994
- GridItem.displayName = 'Grid Item';
1995
-
1996
- const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
1997
- var _jsxFileName$$ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
1992
+ const _excluded$y = ["children", "isCollapse", "css", "contentHeader"];
1993
+ var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
1998
1994
  const StyledDiv$2 = styled(Flex$1, {
1999
1995
  justifyContent: 'center',
2000
1996
  marginLeft: 'auto',
@@ -2037,7 +2033,7 @@
2037
2033
  css,
2038
2034
  contentHeader
2039
2035
  } = _ref,
2040
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
2036
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
2041
2037
  return /*#__PURE__*/React__default["default"].createElement(StyledDiv$2, _extends({
2042
2038
  id: "retina-container",
2043
2039
  css: Object.assign({
@@ -2046,7 +2042,7 @@
2046
2042
  }, props, {
2047
2043
  __self: undefined,
2048
2044
  __source: {
2049
- fileName: _jsxFileName$$,
2045
+ fileName: _jsxFileName$Z,
2050
2046
  lineNumber: 43,
2051
2047
  columnNumber: 5
2052
2048
  }
@@ -2460,8 +2456,8 @@
2460
2456
  }), void 0);
2461
2457
  });
2462
2458
 
2463
- const _excluded$z = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2464
- var _jsxFileName$_ = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/banner/Banner.js";
2459
+ const _excluded$x = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2460
+ var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/banner/Banner.js";
2465
2461
  const Context$2 = /*#__PURE__*/React__namespace.createContext();
2466
2462
  const StyledBanner = styled(Flex$1, {
2467
2463
  maxWidth: '100%',
@@ -2563,7 +2559,7 @@
2563
2559
  }, props, {
2564
2560
  __self: undefined,
2565
2561
  __source: {
2566
- fileName: _jsxFileName$_,
2562
+ fileName: _jsxFileName$Y,
2567
2563
  lineNumber: 111,
2568
2564
  columnNumber: 3
2569
2565
  }
@@ -2584,7 +2580,7 @@
2584
2580
  }, props, {
2585
2581
  __self: undefined,
2586
2582
  __source: {
2587
- fileName: _jsxFileName$_,
2583
+ fileName: _jsxFileName$Y,
2588
2584
  lineNumber: 128,
2589
2585
  columnNumber: 3
2590
2586
  }
@@ -2620,7 +2616,7 @@
2620
2616
  return /*#__PURE__*/React__namespace.createElement(Context$2.Consumer, {
2621
2617
  __self: undefined,
2622
2618
  __source: {
2623
- fileName: _jsxFileName$_,
2619
+ fileName: _jsxFileName$Y,
2624
2620
  lineNumber: 159,
2625
2621
  columnNumber: 5
2626
2622
  }
@@ -2632,7 +2628,7 @@
2632
2628
  color: variant ? generateVariant(variant) : generateVariant(value.variant),
2633
2629
  __self: undefined,
2634
2630
  __source: {
2635
- fileName: _jsxFileName$_,
2631
+ fileName: _jsxFileName$Y,
2636
2632
  lineNumber: 161,
2637
2633
  columnNumber: 9
2638
2634
  }
@@ -2658,7 +2654,7 @@
2658
2654
  const BannerClose = () => /*#__PURE__*/React__namespace.createElement(Context$2.Consumer, {
2659
2655
  __self: undefined,
2660
2656
  __source: {
2661
- fileName: _jsxFileName$_,
2657
+ fileName: _jsxFileName$Y,
2662
2658
  lineNumber: 193,
2663
2659
  columnNumber: 3
2664
2660
  }
@@ -2670,7 +2666,7 @@
2670
2666
  },
2671
2667
  __self: undefined,
2672
2668
  __source: {
2673
- fileName: _jsxFileName$_,
2669
+ fileName: _jsxFileName$Y,
2674
2670
  lineNumber: 195,
2675
2671
  columnNumber: 7
2676
2672
  }
@@ -2679,7 +2675,7 @@
2679
2675
  size: "16px",
2680
2676
  __self: undefined,
2681
2677
  __source: {
2682
- fileName: _jsxFileName$_,
2678
+ fileName: _jsxFileName$Y,
2683
2679
  lineNumber: 202,
2684
2680
  columnNumber: 9
2685
2681
  }
@@ -2690,14 +2686,14 @@
2690
2686
  direction: "column",
2691
2687
  __self: undefined,
2692
2688
  __source: {
2693
- fileName: _jsxFileName$_,
2689
+ fileName: _jsxFileName$Y,
2694
2690
  lineNumber: 210,
2695
2691
  columnNumber: 5
2696
2692
  }
2697
2693
  }, /*#__PURE__*/React__namespace.createElement(Flex$1, {
2698
2694
  __self: undefined,
2699
2695
  __source: {
2700
- fileName: _jsxFileName$_,
2696
+ fileName: _jsxFileName$Y,
2701
2697
  lineNumber: 211,
2702
2698
  columnNumber: 7
2703
2699
  }
@@ -2706,7 +2702,7 @@
2706
2702
  direction: "row",
2707
2703
  __self: undefined,
2708
2704
  __source: {
2709
- fileName: _jsxFileName$_,
2705
+ fileName: _jsxFileName$Y,
2710
2706
  lineNumber: 212,
2711
2707
  columnNumber: 9
2712
2708
  }
@@ -2716,7 +2712,7 @@
2716
2712
  },
2717
2713
  __self: undefined,
2718
2714
  __source: {
2719
- fileName: _jsxFileName$_,
2715
+ fileName: _jsxFileName$Y,
2720
2716
  lineNumber: 213,
2721
2717
  columnNumber: 27
2722
2718
  }
@@ -2729,21 +2725,21 @@
2729
2725
  },
2730
2726
  __self: undefined,
2731
2727
  __source: {
2732
- fileName: _jsxFileName$_,
2728
+ fileName: _jsxFileName$Y,
2733
2729
  lineNumber: 214,
2734
2730
  columnNumber: 11
2735
2731
  }
2736
2732
  }, props.title && /*#__PURE__*/React__namespace.createElement(BannerTitle, {
2737
2733
  __self: undefined,
2738
2734
  __source: {
2739
- fileName: _jsxFileName$_,
2735
+ fileName: _jsxFileName$Y,
2740
2736
  lineNumber: 222,
2741
2737
  columnNumber: 29
2742
2738
  }
2743
2739
  }, props.title), props.description && /*#__PURE__*/React__namespace.createElement(BannerDescription, {
2744
2740
  __self: undefined,
2745
2741
  __source: {
2746
- fileName: _jsxFileName$_,
2742
+ fileName: _jsxFileName$Y,
2747
2743
  lineNumber: 223,
2748
2744
  columnNumber: 35
2749
2745
  }
@@ -2756,7 +2752,7 @@
2756
2752
  closeCenter: !props.title && !props.link,
2757
2753
  __self: undefined,
2758
2754
  __source: {
2759
- fileName: _jsxFileName$_,
2755
+ fileName: _jsxFileName$Y,
2760
2756
  lineNumber: 226,
2761
2757
  columnNumber: 9
2762
2758
  }
@@ -2765,7 +2761,7 @@
2765
2761
  size: "16px",
2766
2762
  __self: undefined,
2767
2763
  __source: {
2768
- fileName: _jsxFileName$_,
2764
+ fileName: _jsxFileName$Y,
2769
2765
  lineNumber: 234,
2770
2766
  columnNumber: 11
2771
2767
  }
@@ -2778,7 +2774,7 @@
2778
2774
  variant: props.variant,
2779
2775
  __self: undefined,
2780
2776
  __source: {
2781
- fileName: _jsxFileName$_,
2777
+ fileName: _jsxFileName$Y,
2782
2778
  lineNumber: 238,
2783
2779
  columnNumber: 9
2784
2780
  }
@@ -2797,7 +2793,7 @@
2797
2793
  bannerBlock,
2798
2794
  icon
2799
2795
  } = _ref,
2800
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
2796
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$x);
2801
2797
  return /*#__PURE__*/React__namespace.createElement(StyledBanner, _extends({
2802
2798
  variant: variant,
2803
2799
  hasAction: !!onClick,
@@ -2806,7 +2802,7 @@
2806
2802
  }, rest, {
2807
2803
  __self: undefined,
2808
2804
  __source: {
2809
- fileName: _jsxFileName$_,
2805
+ fileName: _jsxFileName$Y,
2810
2806
  lineNumber: 260,
2811
2807
  columnNumber: 5
2812
2808
  }
@@ -2823,7 +2819,7 @@
2823
2819
  },
2824
2820
  __self: undefined,
2825
2821
  __source: {
2826
- fileName: _jsxFileName$_,
2822
+ fileName: _jsxFileName$Y,
2827
2823
  lineNumber: 262,
2828
2824
  columnNumber: 9
2829
2825
  }
@@ -2834,7 +2830,7 @@
2834
2830
  },
2835
2831
  __self: undefined,
2836
2832
  __source: {
2837
- fileName: _jsxFileName$_,
2833
+ fileName: _jsxFileName$Y,
2838
2834
  lineNumber: 269,
2839
2835
  columnNumber: 11
2840
2836
  }
@@ -2849,7 +2845,7 @@
2849
2845
  onRemove: onRemove,
2850
2846
  __self: undefined,
2851
2847
  __source: {
2852
- fileName: _jsxFileName$_,
2848
+ fileName: _jsxFileName$Y,
2853
2849
  lineNumber: 272,
2854
2850
  columnNumber: 9
2855
2851
  }
@@ -3459,8 +3455,8 @@
3459
3455
  Card.Label = StyledLabel$2;
3460
3456
  Card.Description = StyledDescription$3;
3461
3457
 
3462
- const _excluded$y = ["children"];
3463
- var _jsxFileName$Z = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
3458
+ const _excluded$w = ["children"];
3459
+ var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
3464
3460
  const BreadcrumbStyle = styled('nav', {
3465
3461
  wordWrap: 'break-word',
3466
3462
  '& li+li:before': {
@@ -3505,7 +3501,7 @@
3505
3501
  return /*#__PURE__*/React__default["default"].createElement(BreadcrumbLinkStyle, _extends({}, props, aria, {
3506
3502
  __self: undefined,
3507
3503
  __source: {
3508
- fileName: _jsxFileName$Z,
3504
+ fileName: _jsxFileName$X,
3509
3505
  lineNumber: 42,
3510
3506
  columnNumber: 10
3511
3507
  }
@@ -3515,19 +3511,19 @@
3515
3511
  let {
3516
3512
  children
3517
3513
  } = _ref,
3518
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
3514
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$w);
3519
3515
  return /*#__PURE__*/React__default["default"].createElement(BreadcrumbStyle, _extends({}, rest, {
3520
3516
  "aria-label": "breadcrumb",
3521
3517
  __self: undefined,
3522
3518
  __source: {
3523
- fileName: _jsxFileName$Z,
3519
+ fileName: _jsxFileName$X,
3524
3520
  lineNumber: 47,
3525
3521
  columnNumber: 5
3526
3522
  }
3527
3523
  }), /*#__PURE__*/React__default["default"].createElement(Ol, {
3528
3524
  __self: undefined,
3529
3525
  __source: {
3530
- fileName: _jsxFileName$Z,
3526
+ fileName: _jsxFileName$X,
3531
3527
  lineNumber: 48,
3532
3528
  columnNumber: 7
3533
3529
  }
@@ -3777,8 +3773,8 @@
3777
3773
  };
3778
3774
  Badge.displayName = 'Badge';
3779
3775
 
3780
- const _excluded$x = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3781
- var _jsxFileName$Y = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
3776
+ const _excluded$v = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3777
+ var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/avatar/Avatar.js";
3782
3778
  const StyledAvatar = styled(AvatarPrimitive__namespace.Root, {
3783
3779
  width: '32px',
3784
3780
  height: '32px',
@@ -3822,7 +3818,7 @@
3822
3818
  onClick,
3823
3819
  css
3824
3820
  } = _ref,
3825
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
3821
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
3826
3822
  return /*#__PURE__*/React__default["default"].createElement(StyledAvatar, _extends({
3827
3823
  className: className,
3828
3824
  onClick: onClick,
@@ -3830,7 +3826,7 @@
3830
3826
  }, props, {
3831
3827
  __self: this,
3832
3828
  __source: {
3833
- fileName: _jsxFileName$Y,
3829
+ fileName: _jsxFileName$W,
3834
3830
  lineNumber: 46,
3835
3831
  columnNumber: 5
3836
3832
  }
@@ -3840,7 +3836,7 @@
3840
3836
  onLoadingStatusChange: onLoadingStatusChange,
3841
3837
  __self: this,
3842
3838
  __source: {
3843
- fileName: _jsxFileName$Y,
3839
+ fileName: _jsxFileName$W,
3844
3840
  lineNumber: 47,
3845
3841
  columnNumber: 21
3846
3842
  }
@@ -3848,21 +3844,21 @@
3848
3844
  delayMs: delayMs,
3849
3845
  __self: this,
3850
3846
  __source: {
3851
- fileName: _jsxFileName$Y,
3847
+ fileName: _jsxFileName$W,
3852
3848
  lineNumber: 48,
3853
3849
  columnNumber: 7
3854
3850
  }
3855
3851
  }, children !== undefined ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, children) : /*#__PURE__*/React__default["default"].createElement(StyledIcon, {
3856
3852
  __self: this,
3857
3853
  __source: {
3858
- fileName: _jsxFileName$Y,
3854
+ fileName: _jsxFileName$W,
3859
3855
  lineNumber: 52,
3860
3856
  columnNumber: 11
3861
3857
  }
3862
3858
  }, /*#__PURE__*/React__default["default"].createElement(icons.UserFilled, {
3863
3859
  __self: this,
3864
3860
  __source: {
3865
- fileName: _jsxFileName$Y,
3861
+ fileName: _jsxFileName$W,
3866
3862
  lineNumber: 53,
3867
3863
  columnNumber: 13
3868
3864
  }
@@ -3879,8 +3875,8 @@
3879
3875
  delayMs: 0
3880
3876
  };
3881
3877
 
3882
- const _excluded$w = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3883
- var _jsxFileName$X = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
3878
+ const _excluded$u = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3879
+ var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/image/Image.js";
3884
3880
  const ContainerFallback = styled(Flex$1, {
3885
3881
  boxSizing: 'border-box',
3886
3882
  border: '2px dashed #C0C4C4',
@@ -3929,7 +3925,7 @@
3929
3925
  cssFallback,
3930
3926
  rounded
3931
3927
  } = _ref,
3932
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
3928
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
3933
3929
  const {
3934
3930
  t
3935
3931
  } = reactI18next.useTranslation('translation');
@@ -3948,7 +3944,7 @@
3948
3944
  }, props, {
3949
3945
  __self: this,
3950
3946
  __source: {
3951
- fileName: _jsxFileName$X,
3947
+ fileName: _jsxFileName$V,
3952
3948
  lineNumber: 61,
3953
3949
  columnNumber: 7
3954
3950
  }
@@ -3964,14 +3960,14 @@
3964
3960
  }, cssFallback),
3965
3961
  __self: this,
3966
3962
  __source: {
3967
- fileName: _jsxFileName$X,
3963
+ fileName: _jsxFileName$V,
3968
3964
  lineNumber: 75,
3969
3965
  columnNumber: 7
3970
3966
  }
3971
3967
  }, /*#__PURE__*/React__default["default"].createElement(TextFallback, {
3972
3968
  __self: this,
3973
3969
  __source: {
3974
- fileName: _jsxFileName$X,
3970
+ fileName: _jsxFileName$V,
3975
3971
  lineNumber: 76,
3976
3972
  columnNumber: 9
3977
3973
  }
@@ -4029,6 +4025,337 @@
4029
4025
  fallbackTitle: 'Tidak ada foto'
4030
4026
  };
4031
4027
 
4028
+ var zIndices$2 = core.foundations.zIndices;
4029
+ var slideUpAndFade$2 = keyframes({
4030
+ '0%': {
4031
+ opacity: 0,
4032
+ transform: 'translateY(2px)'
4033
+ },
4034
+ '100%': {
4035
+ opacity: 1,
4036
+ transform: 'translateY(0)'
4037
+ }
4038
+ });
4039
+ var slideRightAndFade$2 = keyframes({
4040
+ '0%': {
4041
+ opacity: 0,
4042
+ transform: 'translateX(-2px)'
4043
+ },
4044
+ '100%': {
4045
+ opacity: 1,
4046
+ transform: 'translateX(0)'
4047
+ }
4048
+ });
4049
+ var slideDownAndFade$2 = keyframes({
4050
+ '0%': {
4051
+ opacity: 0,
4052
+ transform: 'translateY(-2px)'
4053
+ },
4054
+ '100%': {
4055
+ opacity: 1,
4056
+ transform: 'translateY(0)'
4057
+ }
4058
+ });
4059
+ var slideLeftAndFade$2 = keyframes({
4060
+ '0%': {
4061
+ opacity: 0,
4062
+ transform: 'translateX(2px)'
4063
+ },
4064
+ '100%': {
4065
+ opacity: 1,
4066
+ transform: 'translateX(0)'
4067
+ }
4068
+ });
4069
+ var StyledContent$6 = styled(TooltipPrimitive__namespace.Content, {
4070
+ zIndex: zIndices$2.tooltip,
4071
+ borderRadius: 8,
4072
+ padding: '8px',
4073
+ fontSize: '$helper',
4074
+ letterSpacing: '$helper',
4075
+ lineHeight: '$helper',
4076
+ fontWeight: '400',
4077
+ backgroundColor: '$white',
4078
+ boxShadow: '$large',
4079
+ '@media (prefers-reduced-motion: no-preference)': {
4080
+ animationDuration: '400ms',
4081
+ animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
4082
+ animationFillMode: 'forwards',
4083
+ willChange: 'transform, opacity',
4084
+ '&[data-state="delayed-open"]': {
4085
+ '&[data-side="top"]': {
4086
+ animationName: slideDownAndFade$2
4087
+ },
4088
+ '&[data-side="right"]': {
4089
+ animationName: slideLeftAndFade$2
4090
+ },
4091
+ '&[data-side="bottom"]': {
4092
+ animationName: slideUpAndFade$2
4093
+ },
4094
+ '&[data-side="left"]': {
4095
+ animationName: slideRightAndFade$2
4096
+ }
4097
+ }
4098
+ }
4099
+ });
4100
+ var TriggerSpan = styled('span', {
4101
+ display: 'flex'
4102
+ });
4103
+ var StyledArrow$1 = styled(TooltipPrimitive__namespace.Arrow, {
4104
+ boxShadow: '$large'
4105
+ });
4106
+ var TooltipBase = styled(TooltipPrimitive__namespace.Root, {
4107
+ defaultVariants: {
4108
+ color: 'ligth'
4109
+ }
4110
+ });
4111
+ // Exports
4112
+ var Provider = TooltipPrimitive__namespace.Provider;
4113
+ var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
4114
+ var TooltipContent = StyledContent$6;
4115
+ var dark = {
4116
+ color: core.foundations.colors.white,
4117
+ backgroundColor: core.foundations.colors.gray800
4118
+ };
4119
+ var ligth = {
4120
+ color: core.foundations.colors.textPrimary,
4121
+ backgroundColor: core.foundations.colors.bgWhite
4122
+ };
4123
+ var darkArrow = {
4124
+ fill: core.foundations.colors.gray800
4125
+ };
4126
+ var lightArrow = {
4127
+ fill: core.foundations.colors.bgWhite
4128
+ };
4129
+ var Tooltip$1 = function Tooltip(_a) {
4130
+ var children = _a.children,
4131
+ label = _a.label,
4132
+ color = _a.color,
4133
+ css = _a.css,
4134
+ withClick = _a.withClick,
4135
+ side = _a.side,
4136
+ align = _a.align,
4137
+ delayDuration = _a.delayDuration,
4138
+ rest = __rest(_a, ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"]);
4139
+ var _b = React.useState(false),
4140
+ open = _b[0],
4141
+ setOpen = _b[1];
4142
+ return jsxRuntime.jsx(Provider, {
4143
+ children: jsxRuntime.jsxs(TooltipBase, __assign({}, rest, {
4144
+ open: withClick ? open : undefined,
4145
+ delayDuration: delayDuration
4146
+ }, {
4147
+ children: [jsxRuntime.jsx(TooltipTrigger, __assign({
4148
+ asChild: true
4149
+ }, {
4150
+ children: jsxRuntime.jsx(TriggerSpan, __assign({
4151
+ onClick: function () {
4152
+ return withClick && !open && setOpen(true);
4153
+ }
4154
+ }, {
4155
+ children: children
4156
+ }), void 0)
4157
+ }), void 0), jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, {
4158
+ children: jsxRuntime.jsxs(StyledContent$6, __assign({
4159
+ align: align,
4160
+ side: side,
4161
+ sideOffset: 5,
4162
+ css: color === 'dark' ? __assign(__assign({}, dark), css) : __assign(__assign({}, ligth), css),
4163
+ onPointerDownOutside: function () {
4164
+ return setTimeout(function () {
4165
+ setOpen(false);
4166
+ }, 100);
4167
+ }
4168
+ }, {
4169
+ children: [label, jsxRuntime.jsx(StyledArrow$1, {
4170
+ offset: 10,
4171
+ css: color === 'dark' ? darkArrow : lightArrow
4172
+ }, void 0)]
4173
+ }), void 0)
4174
+ }, void 0)]
4175
+ }), void 0)
4176
+ }, void 0);
4177
+ };
4178
+ Tooltip$1.defaultProps = {
4179
+ color: 'dark',
4180
+ side: 'bottom',
4181
+ align: 'center',
4182
+ label: '',
4183
+ children: jsxRuntime.jsx("div", {}, void 0),
4184
+ delayDuration: 200
4185
+ };
4186
+
4187
+ const _excluded$t = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4188
+ var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
4189
+ const StyledProgress$1 = react.styled(ProgressPrimitive__namespace.Root, {
4190
+ position: 'relative',
4191
+ overflow: 'hidden',
4192
+ background: '$chartLightGreen',
4193
+ width: 'auto',
4194
+ height: '12px',
4195
+ variants: {
4196
+ rounded: {
4197
+ true: {
4198
+ borderRadius: '100px'
4199
+ }
4200
+ },
4201
+ color: {
4202
+ green: {
4203
+ backgroundColor: '$chartLightGreen'
4204
+ },
4205
+ orange: {
4206
+ backgroundColor: '$chartLightOrange'
4207
+ },
4208
+ blue: {
4209
+ backgroundColor: '$chartLightBlue'
4210
+ },
4211
+ purple: {
4212
+ backgroundColor: '$chartLightPurple'
4213
+ },
4214
+ yellow: {
4215
+ backgroundColor: '$chartLightYellow'
4216
+ },
4217
+ red: {
4218
+ backgroundColor: '$chartLightRed'
4219
+ },
4220
+ dark: {
4221
+ backgroundColor: '$chartLightGray'
4222
+ }
4223
+ },
4224
+ size: {
4225
+ xs: {
4226
+ height: '4px'
4227
+ },
4228
+ sm: {
4229
+ height: '8px'
4230
+ },
4231
+ m: {
4232
+ height: '12px'
4233
+ },
4234
+ l: {
4235
+ height: '16px'
4236
+ },
4237
+ xl: {
4238
+ height: '20px'
4239
+ }
4240
+ }
4241
+ }
4242
+ });
4243
+ const StyledIndicator$3 = react.styled(ProgressPrimitive__namespace.Indicator, {
4244
+ backgroundColor: '$chartGreen',
4245
+ height: '60%',
4246
+ transition: 'width 660ms cubic-bezier(0.65, 0, 0.35, 1)',
4247
+ variants: {
4248
+ rounded: {
4249
+ true: {
4250
+ borderRadius: '100px'
4251
+ }
4252
+ },
4253
+ color: {
4254
+ green: {
4255
+ backgroundColor: '$chartGreen'
4256
+ },
4257
+ orange: {
4258
+ backgroundColor: '$chartOrange'
4259
+ },
4260
+ blue: {
4261
+ backgroundColor: '$chartBlue'
4262
+ },
4263
+ purple: {
4264
+ backgroundColor: '$chartPurple'
4265
+ },
4266
+ yellow: {
4267
+ backgroundColor: '$chartYellow'
4268
+ },
4269
+ red: {
4270
+ backgroundColor: '$chartRed'
4271
+ },
4272
+ dark: {
4273
+ backgroundColor: '$chartDark'
4274
+ }
4275
+ },
4276
+ size: {
4277
+ xs: {
4278
+ height: '100%'
4279
+ },
4280
+ sm: {
4281
+ height: '100%'
4282
+ },
4283
+ m: {
4284
+ margin: "2px 2px 0"
4285
+ },
4286
+ l: {
4287
+ margin: "3px 3px 0"
4288
+ },
4289
+ xl: {
4290
+ margin: "4px 4px 0"
4291
+ }
4292
+ }
4293
+ }
4294
+ });
4295
+ function Progress$1(_ref) {
4296
+ let {
4297
+ className,
4298
+ value,
4299
+ max,
4300
+ getValueLabel,
4301
+ color,
4302
+ size,
4303
+ rounded,
4304
+ width
4305
+ } = _ref,
4306
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
4307
+ return /*#__PURE__*/React__default["default"].createElement(StyledProgress$1, _extends({
4308
+ className: className,
4309
+ value: value,
4310
+ max: max,
4311
+ getValueLabel: getValueLabel,
4312
+ color: color,
4313
+ size: size,
4314
+ rounded: rounded,
4315
+ css: Object.assign({
4316
+ width: width
4317
+ }, props.css)
4318
+ }, props, {
4319
+ __self: this,
4320
+ __source: {
4321
+ fileName: _jsxFileName$U,
4322
+ lineNumber: 88,
4323
+ columnNumber: 5
4324
+ }
4325
+ }), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$3, {
4326
+ color: color,
4327
+ size: size,
4328
+ rounded: rounded,
4329
+ css: {
4330
+ width: `${value}%`
4331
+ },
4332
+ __self: this,
4333
+ __source: {
4334
+ fileName: _jsxFileName$U,
4335
+ lineNumber: 89,
4336
+ columnNumber: 7
4337
+ }
4338
+ }));
4339
+ }
4340
+ Progress$1.propTypes = {
4341
+ className: PropTypes__default["default"].string,
4342
+ value: PropTypes__default["default"].number,
4343
+ max: PropTypes__default["default"].number,
4344
+ getValueLabel: PropTypes__default["default"].func,
4345
+ color: PropTypes__default["default"].string,
4346
+ size: PropTypes__default["default"].string,
4347
+ rounded: PropTypes__default["default"].bool,
4348
+ width: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
4349
+ };
4350
+ Progress$1.defaultProps = {
4351
+ max: 100,
4352
+ color: 'green',
4353
+ size: 'm',
4354
+ rounded: true
4355
+ };
4356
+
4357
+ const ToastContext = /*#__PURE__*/React__namespace.createContext({});
4358
+
4032
4359
  var objectDefineProperties = {};
4033
4360
 
4034
4361
  var DESCRIPTORS$6 = descriptors;
@@ -4565,383 +4892,6 @@
4565
4892
 
4566
4893
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
4567
4894
 
4568
- const _excluded$v = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
4569
- var _jsxFileName$W = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
4570
- const {
4571
- zIndices: zIndices$2
4572
- } = core.foundations;
4573
- const slideUpAndFade$2 = keyframes({
4574
- '0%': {
4575
- opacity: 0,
4576
- transform: 'translateY(2px)'
4577
- },
4578
- '100%': {
4579
- opacity: 1,
4580
- transform: 'translateY(0)'
4581
- }
4582
- });
4583
- const slideRightAndFade$2 = keyframes({
4584
- '0%': {
4585
- opacity: 0,
4586
- transform: 'translateX(-2px)'
4587
- },
4588
- '100%': {
4589
- opacity: 1,
4590
- transform: 'translateX(0)'
4591
- }
4592
- });
4593
- const slideDownAndFade$2 = keyframes({
4594
- '0%': {
4595
- opacity: 0,
4596
- transform: 'translateY(-2px)'
4597
- },
4598
- '100%': {
4599
- opacity: 1,
4600
- transform: 'translateY(0)'
4601
- }
4602
- });
4603
- const slideLeftAndFade$2 = keyframes({
4604
- '0%': {
4605
- opacity: 0,
4606
- transform: 'translateX(2px)'
4607
- },
4608
- '100%': {
4609
- opacity: 1,
4610
- transform: 'translateX(0)'
4611
- }
4612
- });
4613
- const StyledContent$6 = styled(TooltipPrimitive__namespace.Content, {
4614
- zIndex: zIndices$2.tooltip,
4615
- borderRadius: 8,
4616
- padding: '8px',
4617
- fontSize: '$helper',
4618
- letterSpacing: '$helper',
4619
- lineHeight: '$helper',
4620
- fontWeight: '400',
4621
- backgroundColor: '$white',
4622
- boxShadow: '$large',
4623
- '@media (prefers-reduced-motion: no-preference)': {
4624
- animationDuration: '400ms',
4625
- animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
4626
- animationFillMode: 'forwards',
4627
- willChange: 'transform, opacity',
4628
- '&[data-state="delayed-open"]': {
4629
- '&[data-side="top"]': {
4630
- animationName: slideDownAndFade$2
4631
- },
4632
- '&[data-side="right"]': {
4633
- animationName: slideLeftAndFade$2
4634
- },
4635
- '&[data-side="bottom"]': {
4636
- animationName: slideUpAndFade$2
4637
- },
4638
- '&[data-side="left"]': {
4639
- animationName: slideRightAndFade$2
4640
- }
4641
- }
4642
- }
4643
- });
4644
- const TriggerSpan = styled('span', {
4645
- display: 'flex'
4646
- });
4647
- const StyledArrow$1 = styled(TooltipPrimitive__namespace.Arrow, {
4648
- boxShadow: '$large'
4649
- });
4650
- const TooltipBase = styled(TooltipPrimitive__namespace.Root, {
4651
- defaultVariants: {
4652
- color: 'ligth'
4653
- }
4654
- });
4655
-
4656
- // Exports
4657
- const Provider = TooltipPrimitive__namespace.Provider;
4658
- const TooltipTrigger = TooltipPrimitive__namespace.Trigger;
4659
- const dark = {
4660
- color: core.foundations.colors.white,
4661
- backgroundColor: core.foundations.colors.gray800
4662
- };
4663
- const ligth = {
4664
- color: core.foundations.colors.textPrimary,
4665
- backgroundColor: core.foundations.colors.bgWhite
4666
- };
4667
- const darkArrow = {
4668
- fill: core.foundations.colors.gray800
4669
- };
4670
- const lightArrow = {
4671
- fill: core.foundations.colors.bgWhite
4672
- };
4673
- const Tooltip$1 = _ref => {
4674
- let {
4675
- children,
4676
- label,
4677
- color,
4678
- css,
4679
- withClick,
4680
- side,
4681
- align,
4682
- delayDuration
4683
- } = _ref,
4684
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4685
- const [open, setOpen] = React.useState(false);
4686
- return /*#__PURE__*/React__default["default"].createElement(Provider, {
4687
- __self: undefined,
4688
- __source: {
4689
- fileName: _jsxFileName$W,
4690
- lineNumber: 91,
4691
- columnNumber: 5
4692
- }
4693
- }, /*#__PURE__*/React__default["default"].createElement(TooltipBase, _extends({}, rest, {
4694
- open: withClick ? open : undefined,
4695
- delayDuration: delayDuration,
4696
- __self: undefined,
4697
- __source: {
4698
- fileName: _jsxFileName$W,
4699
- lineNumber: 92,
4700
- columnNumber: 7
4701
- }
4702
- }), /*#__PURE__*/React__default["default"].createElement(TooltipTrigger, {
4703
- asChild: true,
4704
- __self: undefined,
4705
- __source: {
4706
- fileName: _jsxFileName$W,
4707
- lineNumber: 93,
4708
- columnNumber: 9
4709
- }
4710
- }, /*#__PURE__*/React__default["default"].createElement(TriggerSpan, {
4711
- onClick: () => withClick && !open && setOpen(true),
4712
- __self: undefined,
4713
- __source: {
4714
- fileName: _jsxFileName$W,
4715
- lineNumber: 94,
4716
- columnNumber: 11
4717
- }
4718
- }, children)), /*#__PURE__*/React__default["default"].createElement(TooltipPrimitive__namespace.Portal, {
4719
- __self: undefined,
4720
- __source: {
4721
- fileName: _jsxFileName$W,
4722
- lineNumber: 96,
4723
- columnNumber: 9
4724
- }
4725
- }, /*#__PURE__*/React__default["default"].createElement(StyledContent$6, {
4726
- align: align,
4727
- side: side,
4728
- sideOffset: 5,
4729
- css: color === 'dark' ? Object.assign({}, dark, css) : Object.assign({}, ligth, css),
4730
- onPointerDownOutside: () => setTimeout(() => {
4731
- setOpen(false);
4732
- }, 100),
4733
- __self: undefined,
4734
- __source: {
4735
- fileName: _jsxFileName$W,
4736
- lineNumber: 97,
4737
- columnNumber: 11
4738
- }
4739
- }, label, /*#__PURE__*/React__default["default"].createElement(StyledArrow$1, {
4740
- offset: 10,
4741
- css: color === 'dark' ? darkArrow : lightArrow,
4742
- __self: undefined,
4743
- __source: {
4744
- fileName: _jsxFileName$W,
4745
- lineNumber: 109,
4746
- columnNumber: 13
4747
- }
4748
- })))));
4749
- };
4750
- Tooltip$1.propTypes = {
4751
- children: PropTypes__default["default"].node,
4752
- label: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].node]),
4753
- color: PropTypes__default["default"].string,
4754
- side: PropTypes__default["default"].oneOf(['top', 'bottom', 'right', 'left']),
4755
- align: PropTypes__default["default"].oneOf(['start', 'center', 'end'])
4756
- };
4757
- Tooltip$1.defaultProps = {
4758
- color: 'dark',
4759
- side: 'bottom',
4760
- align: 'center',
4761
- label: '',
4762
- children: /*#__PURE__*/React__default["default"].createElement("div", {
4763
- __self: undefined,
4764
- __source: {
4765
- fileName: _jsxFileName$W,
4766
- lineNumber: 130,
4767
- columnNumber: 13
4768
- }
4769
- }),
4770
- delayDuration: 200
4771
- };
4772
-
4773
- const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4774
- var _jsxFileName$V = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/progress/Progress.js";
4775
- const StyledProgress$1 = react.styled(ProgressPrimitive__namespace.Root, {
4776
- position: 'relative',
4777
- overflow: 'hidden',
4778
- background: '$chartLightGreen',
4779
- width: 'auto',
4780
- height: '12px',
4781
- variants: {
4782
- rounded: {
4783
- true: {
4784
- borderRadius: '100px'
4785
- }
4786
- },
4787
- color: {
4788
- green: {
4789
- backgroundColor: '$chartLightGreen'
4790
- },
4791
- orange: {
4792
- backgroundColor: '$chartLightOrange'
4793
- },
4794
- blue: {
4795
- backgroundColor: '$chartLightBlue'
4796
- },
4797
- purple: {
4798
- backgroundColor: '$chartLightPurple'
4799
- },
4800
- yellow: {
4801
- backgroundColor: '$chartLightYellow'
4802
- },
4803
- red: {
4804
- backgroundColor: '$chartLightRed'
4805
- },
4806
- dark: {
4807
- backgroundColor: '$chartLightGray'
4808
- }
4809
- },
4810
- size: {
4811
- xs: {
4812
- height: '4px'
4813
- },
4814
- sm: {
4815
- height: '8px'
4816
- },
4817
- m: {
4818
- height: '12px'
4819
- },
4820
- l: {
4821
- height: '16px'
4822
- },
4823
- xl: {
4824
- height: '20px'
4825
- }
4826
- }
4827
- }
4828
- });
4829
- const StyledIndicator$3 = react.styled(ProgressPrimitive__namespace.Indicator, {
4830
- backgroundColor: '$chartGreen',
4831
- height: '60%',
4832
- transition: 'width 660ms cubic-bezier(0.65, 0, 0.35, 1)',
4833
- variants: {
4834
- rounded: {
4835
- true: {
4836
- borderRadius: '100px'
4837
- }
4838
- },
4839
- color: {
4840
- green: {
4841
- backgroundColor: '$chartGreen'
4842
- },
4843
- orange: {
4844
- backgroundColor: '$chartOrange'
4845
- },
4846
- blue: {
4847
- backgroundColor: '$chartBlue'
4848
- },
4849
- purple: {
4850
- backgroundColor: '$chartPurple'
4851
- },
4852
- yellow: {
4853
- backgroundColor: '$chartYellow'
4854
- },
4855
- red: {
4856
- backgroundColor: '$chartRed'
4857
- },
4858
- dark: {
4859
- backgroundColor: '$chartDark'
4860
- }
4861
- },
4862
- size: {
4863
- xs: {
4864
- height: '100%'
4865
- },
4866
- sm: {
4867
- height: '100%'
4868
- },
4869
- m: {
4870
- margin: "2px 2px 0"
4871
- },
4872
- l: {
4873
- margin: "3px 3px 0"
4874
- },
4875
- xl: {
4876
- margin: "4px 4px 0"
4877
- }
4878
- }
4879
- }
4880
- });
4881
- function Progress$1(_ref) {
4882
- let {
4883
- className,
4884
- value,
4885
- max,
4886
- getValueLabel,
4887
- color,
4888
- size,
4889
- rounded,
4890
- width
4891
- } = _ref,
4892
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4893
- return /*#__PURE__*/React__default["default"].createElement(StyledProgress$1, _extends({
4894
- className: className,
4895
- value: value,
4896
- max: max,
4897
- getValueLabel: getValueLabel,
4898
- color: color,
4899
- size: size,
4900
- rounded: rounded,
4901
- css: Object.assign({
4902
- width: width
4903
- }, props.css)
4904
- }, props, {
4905
- __self: this,
4906
- __source: {
4907
- fileName: _jsxFileName$V,
4908
- lineNumber: 88,
4909
- columnNumber: 5
4910
- }
4911
- }), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$3, {
4912
- color: color,
4913
- size: size,
4914
- rounded: rounded,
4915
- css: {
4916
- width: `${value}%`
4917
- },
4918
- __self: this,
4919
- __source: {
4920
- fileName: _jsxFileName$V,
4921
- lineNumber: 89,
4922
- columnNumber: 7
4923
- }
4924
- }));
4925
- }
4926
- Progress$1.propTypes = {
4927
- className: PropTypes__default["default"].string,
4928
- value: PropTypes__default["default"].number,
4929
- max: PropTypes__default["default"].number,
4930
- getValueLabel: PropTypes__default["default"].func,
4931
- color: PropTypes__default["default"].string,
4932
- size: PropTypes__default["default"].string,
4933
- rounded: PropTypes__default["default"].bool,
4934
- width: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
4935
- };
4936
- Progress$1.defaultProps = {
4937
- max: 100,
4938
- color: 'green',
4939
- size: 'm',
4940
- rounded: true
4941
- };
4942
-
4943
- const ToastContext = /*#__PURE__*/React__namespace.createContext({});
4944
-
4945
4895
  var anObject$d = anObject$j;
4946
4896
 
4947
4897
  // `RegExp.prototype.flags` getter implementation
@@ -5582,8 +5532,8 @@
5582
5532
  return matches;
5583
5533
  }
5584
5534
 
5585
- const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5586
- var _jsxFileName$U = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
5535
+ const _excluded$s = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5536
+ var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/Toast.js";
5587
5537
  const TOAST_WIDTH = 576;
5588
5538
  const ANIMATION_DURATION = 400;
5589
5539
  const TOP_RIGHT_POSITION = 'top-right';
@@ -5751,7 +5701,7 @@
5751
5701
  captionOfAction,
5752
5702
  hrefOfAction
5753
5703
  } = _ref,
5754
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
5704
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
5755
5705
  const [isOpen, setIsOpen] = React__namespace.useState(false);
5756
5706
  const isMobile = useMediaQuery(`(max-width: 767px`);
5757
5707
  const close = React__namespace.useCallback(() => {
@@ -5780,7 +5730,7 @@
5780
5730
  onExited: onRemove,
5781
5731
  __self: undefined,
5782
5732
  __source: {
5783
- fileName: _jsxFileName$U,
5733
+ fileName: _jsxFileName$T,
5784
5734
  lineNumber: 216,
5785
5735
  columnNumber: 5
5786
5736
  }
@@ -5795,7 +5745,7 @@
5795
5745
  }, rest, {
5796
5746
  __self: undefined,
5797
5747
  __source: {
5798
- fileName: _jsxFileName$U,
5748
+ fileName: _jsxFileName$T,
5799
5749
  lineNumber: 227,
5800
5750
  columnNumber: 9
5801
5751
  }
@@ -5805,7 +5755,7 @@
5805
5755
  onClick: onClick,
5806
5756
  __self: undefined,
5807
5757
  __source: {
5808
- fileName: _jsxFileName$U,
5758
+ fileName: _jsxFileName$T,
5809
5759
  lineNumber: 235,
5810
5760
  columnNumber: 11
5811
5761
  }
@@ -5813,7 +5763,7 @@
5813
5763
  direction: "column",
5814
5764
  __self: undefined,
5815
5765
  __source: {
5816
- fileName: _jsxFileName$U,
5766
+ fileName: _jsxFileName$T,
5817
5767
  lineNumber: 236,
5818
5768
  columnNumber: 13
5819
5769
  }
@@ -5821,7 +5771,7 @@
5821
5771
  direction: "row",
5822
5772
  __self: undefined,
5823
5773
  __source: {
5824
- fileName: _jsxFileName$U,
5774
+ fileName: _jsxFileName$T,
5825
5775
  lineNumber: 237,
5826
5776
  columnNumber: 15
5827
5777
  }
@@ -5829,7 +5779,7 @@
5829
5779
  variant: variant,
5830
5780
  __self: undefined,
5831
5781
  __source: {
5832
- fileName: _jsxFileName$U,
5782
+ fileName: _jsxFileName$T,
5833
5783
  lineNumber: 238,
5834
5784
  columnNumber: 17
5835
5785
  }
@@ -5841,7 +5791,7 @@
5841
5791
  },
5842
5792
  __self: undefined,
5843
5793
  __source: {
5844
- fileName: _jsxFileName$U,
5794
+ fileName: _jsxFileName$T,
5845
5795
  lineNumber: 239,
5846
5796
  columnNumber: 17
5847
5797
  }
@@ -5849,7 +5799,7 @@
5849
5799
  justify: "between",
5850
5800
  __self: undefined,
5851
5801
  __source: {
5852
- fileName: _jsxFileName$U,
5802
+ fileName: _jsxFileName$T,
5853
5803
  lineNumber: 247,
5854
5804
  columnNumber: 21
5855
5805
  }
@@ -5864,7 +5814,7 @@
5864
5814
  },
5865
5815
  __self: undefined,
5866
5816
  __source: {
5867
- fileName: _jsxFileName$U,
5817
+ fileName: _jsxFileName$T,
5868
5818
  lineNumber: 248,
5869
5819
  columnNumber: 23
5870
5820
  }
@@ -5873,7 +5823,7 @@
5873
5823
  color: "secondary",
5874
5824
  __self: undefined,
5875
5825
  __source: {
5876
- fileName: _jsxFileName$U,
5826
+ fileName: _jsxFileName$T,
5877
5827
  lineNumber: 262,
5878
5828
  columnNumber: 19
5879
5829
  }
@@ -5888,7 +5838,7 @@
5888
5838
  hasTitle: !!title,
5889
5839
  __self: undefined,
5890
5840
  __source: {
5891
- fileName: _jsxFileName$U,
5841
+ fileName: _jsxFileName$T,
5892
5842
  lineNumber: 266,
5893
5843
  columnNumber: 17
5894
5844
  }
@@ -5897,7 +5847,7 @@
5897
5847
  size: "16px",
5898
5848
  __self: undefined,
5899
5849
  __source: {
5900
- fileName: _jsxFileName$U,
5850
+ fileName: _jsxFileName$T,
5901
5851
  lineNumber: 276,
5902
5852
  columnNumber: 19
5903
5853
  }
@@ -5912,7 +5862,7 @@
5912
5862
  },
5913
5863
  __self: undefined,
5914
5864
  __source: {
5915
- fileName: _jsxFileName$U,
5865
+ fileName: _jsxFileName$T,
5916
5866
  lineNumber: 280,
5917
5867
  columnNumber: 17
5918
5868
  }
@@ -5934,8 +5884,8 @@
5934
5884
  dismissAfter: 5000
5935
5885
  };
5936
5886
 
5937
- const _excluded$s = ["preventDuplicate"];
5938
- var _jsxFileName$T = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
5887
+ const _excluded$r = ["preventDuplicate"];
5888
+ var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
5939
5889
  const ToastBox = styled(Flex$1, {
5940
5890
  position: 'fixed',
5941
5891
  variants: {
@@ -5982,7 +5932,7 @@
5982
5932
  },
5983
5933
  __self: undefined,
5984
5934
  __source: {
5985
- fileName: _jsxFileName$T,
5935
+ fileName: _jsxFileName$S,
5986
5936
  lineNumber: 43,
5987
5937
  columnNumber: 5
5988
5938
  }
@@ -5990,7 +5940,7 @@
5990
5940
  position: position,
5991
5941
  __self: undefined,
5992
5942
  __source: {
5993
- fileName: _jsxFileName$T,
5943
+ fileName: _jsxFileName$S,
5994
5944
  lineNumber: 44,
5995
5945
  columnNumber: 7
5996
5946
  }
@@ -5998,14 +5948,14 @@
5998
5948
  const {
5999
5949
  preventDuplicate
6000
5950
  } = item,
6001
- toast = _objectWithoutPropertiesLoose(item, _excluded$s);
5951
+ toast = _objectWithoutPropertiesLoose(item, _excluded$r);
6002
5952
  return /*#__PURE__*/React__namespace.createElement(Toast, _extends({
6003
5953
  key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
6004
5954
  onRemove: () => removeToast(toast.id)
6005
5955
  }, toast, {
6006
5956
  __self: undefined,
6007
5957
  __source: {
6008
- fileName: _jsxFileName$T,
5958
+ fileName: _jsxFileName$S,
6009
5959
  lineNumber: 47,
6010
5960
  columnNumber: 18
6011
5961
  }
@@ -7231,8 +7181,8 @@
7231
7181
  return message;
7232
7182
  };
7233
7183
 
7234
- const _excluded$r = ["id", "disabledOfflineIntercept"];
7235
- var _jsxFileName$S = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
7184
+ const _excluded$q = ["id", "disabledOfflineIntercept"];
7185
+ var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
7236
7186
  let toastCount = 0;
7237
7187
  const ToastProvider = ({
7238
7188
  children,
@@ -7261,7 +7211,7 @@
7261
7211
  id,
7262
7212
  disabledOfflineIntercept
7263
7213
  } = toast,
7264
- rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
7214
+ rest = _objectWithoutPropertiesLoose(toast, _excluded$q);
7265
7215
 
7266
7216
  // eslint-disable-next-line no-plusplus
7267
7217
  const uniqueId = ++toastCount;
@@ -7301,7 +7251,7 @@
7301
7251
  },
7302
7252
  __self: undefined,
7303
7253
  __source: {
7304
- fileName: _jsxFileName$S,
7254
+ fileName: _jsxFileName$R,
7305
7255
  lineNumber: 81,
7306
7256
  columnNumber: 5
7307
7257
  }
@@ -7310,7 +7260,7 @@
7310
7260
  position: TOP_RIGHT_POSITION,
7311
7261
  __self: undefined,
7312
7262
  __source: {
7313
- fileName: _jsxFileName$S,
7263
+ fileName: _jsxFileName$R,
7314
7264
  lineNumber: 83,
7315
7265
  columnNumber: 7
7316
7266
  }
@@ -7319,7 +7269,7 @@
7319
7269
  position: TOP_LEFT_POSITION,
7320
7270
  __self: undefined,
7321
7271
  __source: {
7322
- fileName: _jsxFileName$S,
7272
+ fileName: _jsxFileName$R,
7323
7273
  lineNumber: 87,
7324
7274
  columnNumber: 7
7325
7275
  }
@@ -7328,7 +7278,7 @@
7328
7278
  position: BOTTOM_RIGHT_POSITION,
7329
7279
  __self: undefined,
7330
7280
  __source: {
7331
- fileName: _jsxFileName$S,
7281
+ fileName: _jsxFileName$R,
7332
7282
  lineNumber: 91,
7333
7283
  columnNumber: 7
7334
7284
  }
@@ -7337,7 +7287,7 @@
7337
7287
  position: BOTTOM_LEFT_POSITION,
7338
7288
  __self: undefined,
7339
7289
  __source: {
7340
- fileName: _jsxFileName$S,
7290
+ fileName: _jsxFileName$R,
7341
7291
  lineNumber: 95,
7342
7292
  columnNumber: 7
7343
7293
  }
@@ -7350,8 +7300,8 @@
7350
7300
  children
7351
7301
  }) => condition ? wrapper(children) : children;
7352
7302
 
7353
- const _excluded$q = ["count", "maxCount", "css"];
7354
- var _jsxFileName$R = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
7303
+ const _excluded$p = ["count", "maxCount", "css"];
7304
+ var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
7355
7305
  const formLabelClassStyle = {
7356
7306
  alignItems: 'start !important',
7357
7307
  '& > div': {
@@ -7454,7 +7404,7 @@
7454
7404
  maxCount,
7455
7405
  css
7456
7406
  } = _ref,
7457
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7407
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7458
7408
  const withCounter = Boolean(count || maxCount);
7459
7409
  return /*#__PURE__*/React__default["default"].createElement(ConditionalWrapper, {
7460
7410
  condition: withCounter,
@@ -7463,7 +7413,7 @@
7463
7413
  css: css,
7464
7414
  __self: undefined,
7465
7415
  __source: {
7466
- fileName: _jsxFileName$R,
7416
+ fileName: _jsxFileName$Q,
7467
7417
  lineNumber: 115,
7468
7418
  columnNumber: 9
7469
7419
  }
@@ -7476,14 +7426,14 @@
7476
7426
  },
7477
7427
  __self: undefined,
7478
7428
  __source: {
7479
- fileName: _jsxFileName$R,
7429
+ fileName: _jsxFileName$Q,
7480
7430
  lineNumber: 116,
7481
7431
  columnNumber: 11
7482
7432
  }
7483
7433
  }, count, "/", maxCount), children),
7484
7434
  __self: undefined,
7485
7435
  __source: {
7486
- fileName: _jsxFileName$R,
7436
+ fileName: _jsxFileName$Q,
7487
7437
  lineNumber: 112,
7488
7438
  columnNumber: 5
7489
7439
  }
@@ -7493,7 +7443,7 @@
7493
7443
  }, props, {
7494
7444
  __self: undefined,
7495
7445
  __source: {
7496
- fileName: _jsxFileName$R,
7446
+ fileName: _jsxFileName$Q,
7497
7447
  lineNumber: 123,
7498
7448
  columnNumber: 7
7499
7449
  }
@@ -7501,8 +7451,8 @@
7501
7451
  };
7502
7452
  FormGroup.displayName = 'FormGroup';
7503
7453
 
7504
- const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7505
- var _jsxFileName$Q = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
7454
+ const _excluded$o = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7455
+ var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
7506
7456
  const StyledLabel$1 = styled(LabelPrimitive__namespace.Root, Text$1, {
7507
7457
  display: 'inline-block',
7508
7458
  fontSize: '$label',
@@ -7534,13 +7484,13 @@
7534
7484
  maxCount,
7535
7485
  labelCss
7536
7486
  } = _ref,
7537
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7487
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7538
7488
  return /*#__PURE__*/React__default["default"].createElement(Flex$1, {
7539
7489
  justify: "between",
7540
7490
  className: "form-label",
7541
7491
  __self: undefined,
7542
7492
  __source: {
7543
- fileName: _jsxFileName$Q,
7493
+ fileName: _jsxFileName$P,
7544
7494
  lineNumber: 36,
7545
7495
  columnNumber: 5
7546
7496
  }
@@ -7550,7 +7500,7 @@
7550
7500
  }, props, {
7551
7501
  __self: undefined,
7552
7502
  __source: {
7553
- fileName: _jsxFileName$Q,
7503
+ fileName: _jsxFileName$P,
7554
7504
  lineNumber: 37,
7555
7505
  columnNumber: 7
7556
7506
  }
@@ -7560,7 +7510,7 @@
7560
7510
  css: labelCss,
7561
7511
  __self: undefined,
7562
7512
  __source: {
7563
- fileName: _jsxFileName$Q,
7513
+ fileName: _jsxFileName$P,
7564
7514
  lineNumber: 38,
7565
7515
  columnNumber: 9
7566
7516
  }
@@ -7575,7 +7525,7 @@
7575
7525
  },
7576
7526
  __self: undefined,
7577
7527
  __source: {
7578
- fileName: _jsxFileName$Q,
7528
+ fileName: _jsxFileName$P,
7579
7529
  lineNumber: 42,
7580
7530
  columnNumber: 11
7581
7531
  }
@@ -7583,14 +7533,14 @@
7583
7533
  label: tooltipLabel,
7584
7534
  __self: undefined,
7585
7535
  __source: {
7586
- fileName: _jsxFileName$Q,
7536
+ fileName: _jsxFileName$P,
7587
7537
  lineNumber: 56,
7588
7538
  columnNumber: 11
7589
7539
  }
7590
7540
  }, /*#__PURE__*/React__default["default"].createElement(StyledHelpIcon, {
7591
7541
  __self: undefined,
7592
7542
  __source: {
7593
- fileName: _jsxFileName$Q,
7543
+ fileName: _jsxFileName$P,
7594
7544
  lineNumber: 57,
7595
7545
  columnNumber: 13
7596
7546
  }
@@ -7599,7 +7549,7 @@
7599
7549
  color: "disable",
7600
7550
  __self: undefined,
7601
7551
  __source: {
7602
- fileName: _jsxFileName$Q,
7552
+ fileName: _jsxFileName$P,
7603
7553
  lineNumber: 62,
7604
7554
  columnNumber: 9
7605
7555
  }
@@ -7618,8 +7568,8 @@
7618
7568
  };
7619
7569
  FormLabel.displayName = 'FormLabel';
7620
7570
 
7621
- const _excluded$o = ["children", "error", "errorMessage"];
7622
- var _jsxFileName$P = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
7571
+ const _excluded$n = ["children", "error", "errorMessage"];
7572
+ var _jsxFileName$O = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
7623
7573
  const StyledHelper = styled(Text$1, {
7624
7574
  display: 'inline-block',
7625
7575
  color: '$textSecondary',
@@ -7637,7 +7587,7 @@
7637
7587
  error,
7638
7588
  errorMessage
7639
7589
  } = _ref,
7640
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7590
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7641
7591
  const errorByMessage = !!errorMessage;
7642
7592
  if (error === undefined && errorByMessage) {
7643
7593
  return /*#__PURE__*/React__default["default"].createElement(StyledHelper, _extends({
@@ -7647,7 +7597,7 @@
7647
7597
  }, props, {
7648
7598
  __self: undefined,
7649
7599
  __source: {
7650
- fileName: _jsxFileName$P,
7600
+ fileName: _jsxFileName$O,
7651
7601
  lineNumber: 22,
7652
7602
  columnNumber: 7
7653
7603
  }
@@ -7663,7 +7613,7 @@
7663
7613
  }, props, {
7664
7614
  __self: undefined,
7665
7615
  __source: {
7666
- fileName: _jsxFileName$P,
7616
+ fileName: _jsxFileName$O,
7667
7617
  lineNumber: 31,
7668
7618
  columnNumber: 5
7669
7619
  }
@@ -7674,7 +7624,7 @@
7674
7624
  };
7675
7625
  FormHelper.displayName = 'FormHelper';
7676
7626
 
7677
- var _jsxFileName$O = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
7627
+ var _jsxFileName$N = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
7678
7628
  const CheckboxContext = /*#__PURE__*/React.createContext();
7679
7629
  const CheckboxGroup = ({
7680
7630
  children,
@@ -7715,7 +7665,7 @@
7715
7665
  value: values,
7716
7666
  __self: undefined,
7717
7667
  __source: {
7718
- fileName: _jsxFileName$O,
7668
+ fileName: _jsxFileName$N,
7719
7669
  lineNumber: 35,
7720
7670
  columnNumber: 5
7721
7671
  }
@@ -7732,7 +7682,7 @@
7732
7682
  };
7733
7683
  CheckboxGroup.displayName = 'CheckboxGroup';
7734
7684
 
7735
- var _jsxFileName$N = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
7685
+ var _jsxFileName$M = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
7736
7686
  const CheckOutline$1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
7737
7687
  xmlns: "http://www.w3.org/2000/svg",
7738
7688
  xmlSpace: "preserve",
@@ -7749,7 +7699,7 @@
7749
7699
  }, props, {
7750
7700
  __self: undefined,
7751
7701
  __source: {
7752
- fileName: _jsxFileName$N,
7702
+ fileName: _jsxFileName$M,
7753
7703
  lineNumber: 4,
7754
7704
  columnNumber: 3
7755
7705
  }
@@ -7761,7 +7711,7 @@
7761
7711
  },
7762
7712
  __self: undefined,
7763
7713
  __source: {
7764
- fileName: _jsxFileName$N,
7714
+ fileName: _jsxFileName$M,
7765
7715
  lineNumber: 19,
7766
7716
  columnNumber: 5
7767
7717
  }
@@ -7773,13 +7723,13 @@
7773
7723
  },
7774
7724
  __self: undefined,
7775
7725
  __source: {
7776
- fileName: _jsxFileName$N,
7726
+ fileName: _jsxFileName$M,
7777
7727
  lineNumber: 26,
7778
7728
  columnNumber: 5
7779
7729
  }
7780
7730
  }));
7781
7731
 
7782
- var _jsxFileName$M = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
7732
+ var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
7783
7733
  const SvgMinusOutline = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
7784
7734
  xmlns: "http://www.w3.org/2000/svg",
7785
7735
  xmlSpace: "preserve",
@@ -7796,7 +7746,7 @@
7796
7746
  }, props, {
7797
7747
  __self: undefined,
7798
7748
  __source: {
7799
- fileName: _jsxFileName$M,
7749
+ fileName: _jsxFileName$L,
7800
7750
  lineNumber: 4,
7801
7751
  columnNumber: 3
7802
7752
  }
@@ -7808,7 +7758,7 @@
7808
7758
  },
7809
7759
  __self: undefined,
7810
7760
  __source: {
7811
- fileName: _jsxFileName$M,
7761
+ fileName: _jsxFileName$L,
7812
7762
  lineNumber: 19,
7813
7763
  columnNumber: 5
7814
7764
  }
@@ -7820,14 +7770,14 @@
7820
7770
  d: "M14.31 10.41H3.9v-2.6h10.41z",
7821
7771
  __self: undefined,
7822
7772
  __source: {
7823
- fileName: _jsxFileName$M,
7773
+ fileName: _jsxFileName$L,
7824
7774
  lineNumber: 26,
7825
7775
  columnNumber: 5
7826
7776
  }
7827
7777
  }));
7828
7778
 
7829
- const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7830
- var _jsxFileName$L = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
7779
+ const _excluded$m = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7780
+ var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
7831
7781
  const StyledIndicator$2 = styled(CheckboxPrimitive__namespace.Indicator, {
7832
7782
  alignItems: 'center',
7833
7783
  display: 'flex',
@@ -7885,7 +7835,7 @@
7885
7835
  index,
7886
7836
  value
7887
7837
  } = _ref,
7888
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7838
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
7889
7839
  const context = React.useContext(CheckboxContext);
7890
7840
  const [isChecked, setChecked] = React.useState(false);
7891
7841
  React.useEffect(() => {
@@ -7906,28 +7856,28 @@
7906
7856
  }, props, {
7907
7857
  __self: undefined,
7908
7858
  __source: {
7909
- fileName: _jsxFileName$L,
7859
+ fileName: _jsxFileName$K,
7910
7860
  lineNumber: 64,
7911
7861
  columnNumber: 5
7912
7862
  }
7913
7863
  }), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$2, {
7914
7864
  __self: undefined,
7915
7865
  __source: {
7916
- fileName: _jsxFileName$L,
7866
+ fileName: _jsxFileName$K,
7917
7867
  lineNumber: 77,
7918
7868
  columnNumber: 7
7919
7869
  }
7920
7870
  }, indeterminate ? /*#__PURE__*/React__default["default"].createElement(SvgMinusOutline, {
7921
7871
  __self: undefined,
7922
7872
  __source: {
7923
- fileName: _jsxFileName$L,
7873
+ fileName: _jsxFileName$K,
7924
7874
  lineNumber: 77,
7925
7875
  columnNumber: 41
7926
7876
  }
7927
7877
  }) : /*#__PURE__*/React__default["default"].createElement(CheckOutline$1, {
7928
7878
  __self: undefined,
7929
7879
  __source: {
7930
- fileName: _jsxFileName$L,
7880
+ fileName: _jsxFileName$K,
7931
7881
  lineNumber: 77,
7932
7882
  columnNumber: 60
7933
7883
  }
@@ -7940,14 +7890,14 @@
7940
7890
  gap: 4,
7941
7891
  __self: undefined,
7942
7892
  __source: {
7943
- fileName: _jsxFileName$L,
7893
+ fileName: _jsxFileName$K,
7944
7894
  lineNumber: 84,
7945
7895
  columnNumber: 5
7946
7896
  }
7947
7897
  }, /*#__PURE__*/React__default["default"].createElement(Checkbox, _extends({}, props, {
7948
7898
  __self: undefined,
7949
7899
  __source: {
7950
- fileName: _jsxFileName$L,
7900
+ fileName: _jsxFileName$K,
7951
7901
  lineNumber: 85,
7952
7902
  columnNumber: 7
7953
7903
  }
@@ -7963,14 +7913,14 @@
7963
7913
  },
7964
7914
  __self: undefined,
7965
7915
  __source: {
7966
- fileName: _jsxFileName$L,
7916
+ fileName: _jsxFileName$K,
7967
7917
  lineNumber: 86,
7968
7918
  columnNumber: 7
7969
7919
  }
7970
7920
  }, props.label)) : /*#__PURE__*/React__default["default"].createElement(Checkbox, _extends({}, props, {
7971
7921
  __self: undefined,
7972
7922
  __source: {
7973
- fileName: _jsxFileName$L,
7923
+ fileName: _jsxFileName$K,
7974
7924
  lineNumber: 101,
7975
7925
  columnNumber: 5
7976
7926
  }
@@ -7987,8 +7937,8 @@
7987
7937
  };
7988
7938
  InputCheckbox.displayName = 'InputCheckbox';
7989
7939
 
7990
- const _excluded$m = ["children", "size"];
7991
- var _jsxFileName$K = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
7940
+ const _excluded$l = ["children", "size"];
7941
+ var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
7992
7942
  const InputGroupStyle = styled('div', {
7993
7943
  display: 'flex',
7994
7944
  width: '100%',
@@ -8127,7 +8077,7 @@
8127
8077
  children,
8128
8078
  size = 'lg'
8129
8079
  } = _ref,
8130
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
8080
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8131
8081
  const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8132
8082
  const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8133
8083
  const clone = children.map((child, index) => {
@@ -8150,7 +8100,7 @@
8150
8100
  isElement: isElement,
8151
8101
  __self: undefined,
8152
8102
  __source: {
8153
- fileName: _jsxFileName$K,
8103
+ fileName: _jsxFileName$J,
8154
8104
  lineNumber: 169,
8155
8105
  columnNumber: 10
8156
8106
  }
@@ -8326,8 +8276,8 @@
8326
8276
  children: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].node])
8327
8277
  };
8328
8278
 
8329
- const _excluded$l = ["disabled", "readOnly"];
8330
- var _jsxFileName$J = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
8279
+ const _excluded$k = ["disabled", "readOnly"];
8280
+ var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
8331
8281
  const disabledStyle = {
8332
8282
  backgroundColor: '$formDisable',
8333
8283
  color: '$textDisable',
@@ -8500,7 +8450,7 @@
8500
8450
  disabled,
8501
8451
  readOnly
8502
8452
  } = _ref,
8503
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8453
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8504
8454
  return /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({
8505
8455
  ref: ref,
8506
8456
  disabled: disabled,
@@ -8510,7 +8460,7 @@
8510
8460
  }, props, {
8511
8461
  __self: undefined,
8512
8462
  __source: {
8513
- fileName: _jsxFileName$J,
8463
+ fileName: _jsxFileName$I,
8514
8464
  lineNumber: 185,
8515
8465
  columnNumber: 3
8516
8466
  }
@@ -8528,8 +8478,8 @@
8528
8478
  };
8529
8479
  InputText.displayName = 'InputText';
8530
8480
 
8531
- const _excluded$k = ["disabled", "readOnly"];
8532
- var _jsxFileName$I = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
8481
+ const _excluded$j = ["disabled", "readOnly"];
8482
+ var _jsxFileName$H = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
8533
8483
  const StyledTextArea = styled(StyledInput$1, {
8534
8484
  variants: {
8535
8485
  size: {
@@ -8550,7 +8500,7 @@
8550
8500
  disabled,
8551
8501
  readOnly
8552
8502
  } = _ref,
8553
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8503
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8554
8504
  const textareaRef = React.useRef(null);
8555
8505
  React.useEffect(() => {
8556
8506
  if (textareaRef.current) {
@@ -8584,7 +8534,7 @@
8584
8534
  }, props, {
8585
8535
  __self: undefined,
8586
8536
  __source: {
8587
- fileName: _jsxFileName$I,
8537
+ fileName: _jsxFileName$H,
8588
8538
  lineNumber: 51,
8589
8539
  columnNumber: 5
8590
8540
  }
@@ -8607,21 +8557,21 @@
8607
8557
 
8608
8558
  const InputRadioContext = /*#__PURE__*/React__default["default"].createContext();
8609
8559
 
8610
- var _jsxFileName$H = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
8560
+ var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
8611
8561
  const RadioGroup = styled(RadioGroupPrimitive__namespace.Root, Flex$1);
8612
8562
  function InputRadioGroup(props) {
8613
8563
  return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default["default"].createElement(InputRadioContext.Provider, {
8614
8564
  value: props,
8615
8565
  __self: this,
8616
8566
  __source: {
8617
- fileName: _jsxFileName$H,
8567
+ fileName: _jsxFileName$G,
8618
8568
  lineNumber: 13,
8619
8569
  columnNumber: 7
8620
8570
  }
8621
8571
  }, /*#__PURE__*/React__default["default"].createElement(RadioGroup, _extends({}, props, {
8622
8572
  __self: this,
8623
8573
  __source: {
8624
- fileName: _jsxFileName$H,
8574
+ fileName: _jsxFileName$G,
8625
8575
  lineNumber: 14,
8626
8576
  columnNumber: 9
8627
8577
  }
@@ -8640,8 +8590,8 @@
8640
8590
  };
8641
8591
  InputRadioGroup.displayName = 'InputRadioGroup';
8642
8592
 
8643
- const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8644
- var _jsxFileName$G = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
8593
+ const _excluded$i = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8594
+ var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
8645
8595
  const INDICATOR_BASE_STYLES = {
8646
8596
  alignItems: 'center',
8647
8597
  display: 'flex',
@@ -8806,7 +8756,7 @@
8806
8756
  description,
8807
8757
  readOnly
8808
8758
  } = _ref,
8809
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8759
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8810
8760
  function renderInputType(type, checkedValue, onValueChange) {
8811
8761
  switch (type) {
8812
8762
  case 'number':
@@ -8819,7 +8769,7 @@
8819
8769
  asChild: true,
8820
8770
  __self: this,
8821
8771
  __source: {
8822
- fileName: _jsxFileName$G,
8772
+ fileName: _jsxFileName$F,
8823
8773
  lineNumber: 171,
8824
8774
  columnNumber: 11
8825
8775
  }
@@ -8835,7 +8785,7 @@
8835
8785
  asChild: true,
8836
8786
  __self: this,
8837
8787
  __source: {
8838
- fileName: _jsxFileName$G,
8788
+ fileName: _jsxFileName$F,
8839
8789
  lineNumber: 184,
8840
8790
  columnNumber: 11
8841
8791
  }
@@ -8854,7 +8804,7 @@
8854
8804
  },
8855
8805
  __self: this,
8856
8806
  __source: {
8857
- fileName: _jsxFileName$G,
8807
+ fileName: _jsxFileName$F,
8858
8808
  lineNumber: 198,
8859
8809
  columnNumber: 11
8860
8810
  }
@@ -8864,7 +8814,7 @@
8864
8814
  return /*#__PURE__*/React__default["default"].createElement(InputRadioContext.Consumer, {
8865
8815
  __self: undefined,
8866
8816
  __source: {
8867
- fileName: _jsxFileName$G,
8817
+ fileName: _jsxFileName$F,
8868
8818
  lineNumber: 217,
8869
8819
  columnNumber: 5
8870
8820
  }
@@ -8881,7 +8831,7 @@
8881
8831
  outlined: outlined,
8882
8832
  __self: undefined,
8883
8833
  __source: {
8884
- fileName: _jsxFileName$G,
8834
+ fileName: _jsxFileName$F,
8885
8835
  lineNumber: 222,
8886
8836
  columnNumber: 11
8887
8837
  }
@@ -8896,7 +8846,7 @@
8896
8846
  css: css,
8897
8847
  __self: undefined,
8898
8848
  __source: {
8899
- fileName: _jsxFileName$G,
8849
+ fileName: _jsxFileName$F,
8900
8850
  lineNumber: 223,
8901
8851
  columnNumber: 13
8902
8852
  }
@@ -8905,7 +8855,7 @@
8905
8855
  gap: 4,
8906
8856
  __self: undefined,
8907
8857
  __source: {
8908
- fileName: _jsxFileName$G,
8858
+ fileName: _jsxFileName$F,
8909
8859
  lineNumber: 233,
8910
8860
  columnNumber: 15
8911
8861
  }
@@ -8916,14 +8866,14 @@
8916
8866
  }, props, {
8917
8867
  __self: undefined,
8918
8868
  __source: {
8919
- fileName: _jsxFileName$G,
8869
+ fileName: _jsxFileName$F,
8920
8870
  lineNumber: 234,
8921
8871
  columnNumber: 17
8922
8872
  }
8923
8873
  }), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$1, {
8924
8874
  __self: undefined,
8925
8875
  __source: {
8926
- fileName: _jsxFileName$G,
8876
+ fileName: _jsxFileName$F,
8927
8877
  lineNumber: 235,
8928
8878
  columnNumber: 19
8929
8879
  }
@@ -8935,7 +8885,7 @@
8935
8885
  },
8936
8886
  __self: undefined,
8937
8887
  __source: {
8938
- fileName: _jsxFileName$G,
8888
+ fileName: _jsxFileName$F,
8939
8889
  lineNumber: 240,
8940
8890
  columnNumber: 17
8941
8891
  }
@@ -11089,8 +11039,8 @@
11089
11039
  }(React__default["default"].Component);
11090
11040
  NumberFormat.defaultProps = defaultProps;
11091
11041
 
11092
- const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
11093
- var _jsxFileName$F = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
11042
+ const _excluded$h = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
11043
+ var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
11094
11044
  const StyledInput = styled(NumberFormat, {
11095
11045
  // Reset
11096
11046
  appearance: 'none',
@@ -11285,7 +11235,7 @@
11285
11235
  maxLength,
11286
11236
  thousandSeparator
11287
11237
  } = _ref,
11288
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
11238
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11289
11239
  return /*#__PURE__*/React__default["default"].createElement(ConditionalWrapper, {
11290
11240
  condition: Boolean(control),
11291
11241
  wrapper: child => /*#__PURE__*/React__default["default"].createElement(reactHookForm.Controller, {
@@ -11303,14 +11253,14 @@
11303
11253
  }),
11304
11254
  __self: undefined,
11305
11255
  __source: {
11306
- fileName: _jsxFileName$F,
11256
+ fileName: _jsxFileName$E,
11307
11257
  lineNumber: 225,
11308
11258
  columnNumber: 9
11309
11259
  }
11310
11260
  }),
11311
11261
  __self: undefined,
11312
11262
  __source: {
11313
- fileName: _jsxFileName$F,
11263
+ fileName: _jsxFileName$E,
11314
11264
  lineNumber: 222,
11315
11265
  columnNumber: 5
11316
11266
  }
@@ -11328,7 +11278,7 @@
11328
11278
  }, props, {
11329
11279
  __self: undefined,
11330
11280
  __source: {
11331
- fileName: _jsxFileName$F,
11281
+ fileName: _jsxFileName$E,
11332
11282
  lineNumber: 234,
11333
11283
  columnNumber: 7
11334
11284
  }
@@ -11350,9 +11300,7 @@
11350
11300
  InputNumber.name = 'InputText';
11351
11301
  InputNumber.displayName = 'InputNumber';
11352
11302
 
11353
- const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
11354
- var _jsxFileName$E = "/home/alfiantryp/Project/majoo-ui/packages/react/src/components/tag/Tag.js";
11355
- const TagWrapper$4 = styled('div', {
11303
+ var TagWrapper$4 = styled('div', {
11356
11304
  boxSizing: 'border-box',
11357
11305
  listStyle: 'none',
11358
11306
  display: 'inline-flex',
@@ -11394,6 +11342,10 @@
11394
11342
  }
11395
11343
  },
11396
11344
  type: {
11345
+ default: {
11346
+ background: '$bgGray',
11347
+ color: '$textPrimary'
11348
+ },
11397
11349
  success: {
11398
11350
  background: '$bgSuccess',
11399
11351
  color: '$textGreen'
@@ -11410,13 +11362,13 @@
11410
11362
  }
11411
11363
  }
11412
11364
  });
11413
- const TagComponent$1 = styled('span', {
11365
+ var TagComponent$1 = styled('span', {
11414
11366
  textAlign: 'center',
11415
11367
  whiteSpace: 'nowrap',
11416
11368
  overflow: 'hidden',
11417
11369
  textOverflow: 'ellipsis'
11418
11370
  });
11419
- const StyledIconRight$1 = styled('div', {
11371
+ var StyledIconRight$1 = styled('div', {
11420
11372
  marginLeft: '6px',
11421
11373
  display: 'flex',
11422
11374
  verticalAlign: 'middle',
@@ -11436,89 +11388,51 @@
11436
11388
  }
11437
11389
  }
11438
11390
  });
11439
- const StyledIconLeft$3 = styled('div', {
11391
+ var StyledIconLeft$3 = styled('div', {
11440
11392
  margin: '0 3px',
11441
11393
  display: 'flex',
11442
11394
  verticalAlign: 'middle',
11443
11395
  alignItems: 'center',
11444
11396
  color: 'inherit'
11445
11397
  });
11446
- const Tag = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
11447
- let {
11448
- children,
11449
- onClick,
11450
- size,
11451
- icon,
11452
- isRemovable,
11453
- disabled,
11454
- type,
11455
- onRemove,
11456
- readOnly
11457
- } = _ref,
11458
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11459
- return /*#__PURE__*/React__default["default"].createElement(TagWrapper$4, _extends({
11398
+ var Tag = /*#__PURE__*/React__default["default"].forwardRef(function (_a, ref) {
11399
+ var children = _a.children,
11400
+ onClick = _a.onClick,
11401
+ size = _a.size,
11402
+ icon = _a.icon,
11403
+ isRemovable = _a.isRemovable,
11404
+ disabled = _a.disabled,
11405
+ type = _a.type,
11406
+ onRemove = _a.onRemove,
11407
+ readOnly = _a.readOnly,
11408
+ props = __rest(_a, ["children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"]);
11409
+ return jsxRuntime.jsxs(TagWrapper$4, __assign({
11460
11410
  ref: ref,
11461
11411
  onClick: onClick,
11462
11412
  size: size,
11463
11413
  disabled: disabled,
11464
11414
  type: type,
11465
- readOnly: readOnly,
11466
- css: Object.assign({}, props.css)
11415
+ readOnly: readOnly
11467
11416
  }, props, {
11468
- __self: undefined,
11469
- __source: {
11470
- fileName: _jsxFileName$E,
11471
- lineNumber: 84,
11472
- columnNumber: 7
11473
- }
11474
- }), icon !== undefined ? /*#__PURE__*/React__default["default"].createElement(StyledIconLeft$3, {
11475
- __self: undefined,
11476
- __source: {
11477
- fileName: _jsxFileName$E,
11478
- lineNumber: 94,
11479
- columnNumber: 31
11480
- }
11481
- }, icon) : null, /*#__PURE__*/React__default["default"].createElement(TagComponent$1, {
11482
- __self: undefined,
11483
- __source: {
11484
- fileName: _jsxFileName$E,
11485
- lineNumber: 95,
11486
- columnNumber: 9
11487
- }
11488
- }, children), isRemovable ? /*#__PURE__*/React__default["default"].createElement(StyledIconRight$1, {
11489
- disabled: disabled,
11490
- onClick: onRemove,
11491
- readOnly: readOnly,
11492
- __self: undefined,
11493
- __source: {
11494
- fileName: _jsxFileName$E,
11495
- lineNumber: 97,
11496
- columnNumber: 11
11497
- }
11498
- }, /*#__PURE__*/React__default["default"].createElement(icons.CloseOutline, {
11499
- size: 16,
11500
- color: colors$8.iconSecondary,
11501
- style: {
11502
- verticalAlign: 'middle'
11503
- },
11504
- __self: undefined,
11505
- __source: {
11506
- fileName: _jsxFileName$E,
11507
- lineNumber: 98,
11508
- columnNumber: 13
11509
- }
11510
- })) : null);
11417
+ children: [icon !== undefined ? jsxRuntime.jsx(StyledIconLeft$3, {
11418
+ children: icon
11419
+ }, void 0) : null, jsxRuntime.jsx(TagComponent$1, {
11420
+ children: children
11421
+ }, void 0), isRemovable ? jsxRuntime.jsx(StyledIconRight$1, __assign({
11422
+ disabled: disabled,
11423
+ onClick: onRemove,
11424
+ readOnly: readOnly
11425
+ }, {
11426
+ children: jsxRuntime.jsx(icons.CloseOutline, {
11427
+ size: 16,
11428
+ color: colors$8.iconSecondary,
11429
+ style: {
11430
+ verticalAlign: 'middle'
11431
+ }
11432
+ }, void 0)
11433
+ }), void 0) : null]
11434
+ }), void 0);
11511
11435
  });
11512
- Tag.propTypes = {
11513
- size: PropTypes__default["default"].string,
11514
- disabled: PropTypes__default["default"].bool,
11515
- type: PropTypes__default["default"].string,
11516
- icon: PropTypes__default["default"].element,
11517
- isRemovable: PropTypes__default["default"].bool,
11518
- onRemove: PropTypes__default["default"].func,
11519
- onClick: PropTypes__default["default"].func,
11520
- readOnly: PropTypes__default["default"].bool
11521
- };
11522
11436
  Tag.defaultProps = {
11523
11437
  size: 'sm',
11524
11438
  isRemovable: false,
@@ -20136,7 +20050,8 @@
20136
20050
  portalledMobile = _f === void 0 ? false : _f,
20137
20051
  onClose = _a.onClose,
20138
20052
  mobileOnly = _a.mobileOnly,
20139
- desktopOnly = _a.desktopOnly;
20053
+ desktopOnly = _a.desktopOnly,
20054
+ advanceOptions = _a.advanceOptions;
20140
20055
  var _g = reactI18next.useTranslation('MajooUI/datePicker'),
20141
20056
  t = _g.t,
20142
20057
  i18n = _g.i18n;
@@ -20230,20 +20145,22 @@
20230
20145
  }
20231
20146
  };
20232
20147
  var renderDatePicker = function renderDatePicker() {
20148
+ var options = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
20149
+ var advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
20233
20150
  var handleDatePickerChange = function handleDatePickerChange(value) {
20234
20151
  if (showRangeControl || type === 'range_picker') {
20235
20152
  if (rangePickerType === 'monthly') {
20236
20153
  dispatch({
20237
20154
  type: 'UPDATE',
20238
- payload: advancePickerDate('RANGE_MONTH', value)
20155
+ payload: advancePickerReducer('RANGE_MONTH', value)
20239
20156
  });
20240
- onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_MONTH', value));
20157
+ onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerReducer('RANGE_MONTH', value));
20241
20158
  } else {
20242
20159
  dispatch({
20243
20160
  type: 'UPDATE',
20244
- payload: advancePickerDate('RANGE_WEEK', value)
20161
+ payload: advancePickerReducer('RANGE_WEEK', value)
20245
20162
  });
20246
- onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_WEEK', value));
20163
+ onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerReducer('RANGE_WEEK', value));
20247
20164
  }
20248
20165
  } else {
20249
20166
  dispatch({
@@ -20255,10 +20172,10 @@
20255
20172
  };
20256
20173
  return jsxRuntime.jsx(DatePicker, {
20257
20174
  advanceView: type === ADVANCE_PICKER && (!advanceView ? jsxRuntime.jsx(AdvancedOption, {
20258
- options: language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn,
20175
+ options: (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.options) || options,
20259
20176
  disabled: disabled,
20260
20177
  optionHandler: function (value) {
20261
- var reducedResult = advancePickerDate(value, undefined);
20178
+ var reducedResult = advancePickerReducer(value, undefined);
20262
20179
  var dateAsString = moment__default["default"](reducedResult[1]).format('YYYY-MM-DD');
20263
20180
  var payload = [reducedResult[0], moment__default["default"]("".concat(dateAsString, " 23:59"), 'YYYY-MM-DD HH:mm').toDate()];
20264
20181
  dispatch({
@@ -20525,21 +20442,23 @@
20525
20442
  readOnly = _e === void 0 ? false : _e,
20526
20443
  _f = _a.isInvalid,
20527
20444
  isInvalid = _f === void 0 ? false : _f,
20528
- css = _a.css;
20445
+ css = _a.css,
20446
+ advanceOptions = _a.advanceOptions;
20529
20447
  var _g = reactI18next.useTranslation('translation'),
20530
20448
  t = _g.t,
20531
20449
  i18n = _g.i18n;
20532
20450
  var language = i18n.language;
20533
20451
  var pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
20452
+ var advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
20534
20453
  return jsxRuntime.jsx(InputSelect, {
20535
- option: pickerOptions.map(function (option) {
20454
+ option: ((advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.options) || pickerOptions).map(function (option) {
20536
20455
  return {
20537
20456
  name: option.label,
20538
20457
  value: option.value
20539
20458
  };
20540
20459
  }),
20541
20460
  onChange: function (selectedOption) {
20542
- if (onChange) onChange(advancePickerDate(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
20461
+ if (onChange) onChange(advancePickerReducer(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
20543
20462
  },
20544
20463
  placeholder: placeholder || t('placeholder.select', 'Pilih'),
20545
20464
  size: size,
@@ -34043,6 +33962,7 @@
34043
33962
  state = instance.state,
34044
33963
  toggleAllRowsExpanded = instance.toggleAllRowsExpanded,
34045
33964
  setHiddenColumns = instance.setHiddenColumns;
33965
+ var t = reactI18next.useTranslation('MajooUI/table').t;
34046
33966
  React.useEffect(function () {
34047
33967
  if (hiddenColumns === null || hiddenColumns === void 0 ? void 0 : hiddenColumns.length) {
34048
33968
  setHiddenColumns(hiddenColumns);
@@ -34213,17 +34133,43 @@
34213
34133
  }), visibleHeaders.map(function (column, index) {
34214
34134
  var isMobileHeader = column === null || column === void 0 ? void 0 : column.isMobileHeader;
34215
34135
  var isSelector = (column === null || column === void 0 ? void 0 : column.id) === 'selection';
34216
- return (isMobileHeader || isSelector) && /*#__PURE__*/React.createElement(TableHeadCell$2, __assign({}, column.getHeaderProps({
34217
- style: {
34218
- minWidth: column.minWidth,
34219
- width: isSelector ? 10 : column.width,
34220
- maxWidth: isSelector ? 10 : column.maxWidth
34221
- }
34136
+ var headerRender = column.render('Header');
34137
+ return (isMobileHeader || isSelector) && /*#__PURE__*/React.createElement(TableHeadCell$2, __assign({}, column.getHeaderProps(function (props) {
34138
+ return [props, column.sortable ? column.getSortByToggleProps({
34139
+ title: t('sortColumnTitle', 'Urutkan') || 'Urutkan'
34140
+ }) : {
34141
+ onClick: column.onToggle
34142
+ }, {
34143
+ style: {
34144
+ minWidth: column.minWidth,
34145
+ width: isSelector ? 10 : column.width,
34146
+ maxWidth: isSelector ? 10 : column.maxWidth
34147
+ }
34148
+ }];
34222
34149
  }), {
34223
34150
  key: "head-cell-".concat(index)
34224
- }), column.render('Header'), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsxRuntime.jsx(Required$2, {
34225
- children: "*"
34226
- }, void 0) : '');
34151
+ }), typeof headerRender === 'string' ? jsxRuntime.jsx(TableHeaderCellContainer, __assign({
34152
+ isMobile: true,
34153
+ isSortedDesc: column.isSortedDesc,
34154
+ unsortable: !column.sortable,
34155
+ isToggleable: !!column.onToggle,
34156
+ isToggled: column.isToggled,
34157
+ css: {
34158
+ padding: 0
34159
+ }
34160
+ }, {
34161
+ children: jsxRuntime.jsxs(TableHeadCellContent, __assign({
34162
+ heading: "headerTable"
34163
+ }, {
34164
+ children: [headerRender.toUpperCase(), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsxRuntime.jsx(Required$2, {
34165
+ children: "*"
34166
+ }, void 0) : '']
34167
+ }), void 0)
34168
+ }), void 0) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
34169
+ children: [headerRender, (column === null || column === void 0 ? void 0 : column.isRequired) ? jsxRuntime.jsx(Required$2, {
34170
+ children: "*"
34171
+ }, void 0) : '']
34172
+ }, void 0));
34227
34173
  }));
34228
34174
  })
34229
34175
  }, void 0), jsxRuntime.jsxs(TableBody$2, __assign({}, getTableBodyProps(), {
@@ -51772,7 +51718,8 @@
51772
51718
  hiddenColumns = props.hiddenColumns,
51773
51719
  emptyDataProps = props.customEmptyDataProps,
51774
51720
  _d = props.virtualized,
51775
- virtualized = _d === void 0 ? false : _d;
51721
+ virtualized = _d === void 0 ? false : _d,
51722
+ onSortByChange = props.onSortByChange;
51776
51723
  var t = reactI18next.useTranslation('MajooUI/table').t;
51777
51724
  var _e = React.useState(null),
51778
51725
  selectedIndex = _e[0],
@@ -51807,8 +51754,10 @@
51807
51754
  autoResetExpanded: false,
51808
51755
  getRowId: function (row) {
51809
51756
  return row[keyId] || JSON.stringify(row);
51810
- }
51811
- }, reactTable.useExpanded, reactTable.useRowSelect, function (hooks) {
51757
+ },
51758
+ defaultCanSort: false,
51759
+ autoResetSortBy: false
51760
+ }, reactTable.useSortBy, reactTable.useExpanded, reactTable.useRowSelect, function (hooks) {
51812
51761
  showCheckbox && hooks.visibleColumns.push(function (columns) {
51813
51762
  return __spreadArray([{
51814
51763
  id: 'selection',
@@ -51835,7 +51784,9 @@
51835
51784
  prepareRow = instance.prepareRow,
51836
51785
  visibleColumns = instance.visibleColumns,
51837
51786
  setHiddenColumns = instance.setHiddenColumns,
51838
- selectedRowIds = instance.state.selectedRowIds;
51787
+ _f = instance.state,
51788
+ selectedRowIds = _f.selectedRowIds,
51789
+ sortBy = _f.sortBy;
51839
51790
  var tableContainerRef = React.useRef(null);
51840
51791
  var rowVirtualizer = reactVirtual.useVirtual({
51841
51792
  parentRef: tableContainerRef,
@@ -51918,6 +51869,11 @@
51918
51869
  }), void 0);
51919
51870
  };
51920
51871
  var tableRowData = virtualized ? virtualRows : rows;
51872
+ React.useEffect(function () {
51873
+ if (onSortByChange) {
51874
+ onSortByChange(sortBy);
51875
+ }
51876
+ }, [sortBy]);
51921
51877
  return !isMobile ? jsxRuntime.jsx(TableContainer$1, __assign({
51922
51878
  ref: tableContainerRef,
51923
51879
  css: props === null || props === void 0 ? void 0 : props.css
@@ -51931,16 +51887,41 @@
51931
51887
  });
51932
51888
  return jsxRuntime.jsx(TableHeadRow$1, __assign({}, headerGroup.getHeaderGroupProps(), {
51933
51889
  children: visibleHeaders.map(function (column) {
51934
- return !(column === null || column === void 0 ? void 0 : column.isMobileOnly) && jsxRuntime.jsxs(TableHeadCell$1, __assign({}, column.getHeaderProps({
51935
- style: {
51936
- minWidth: column.minWidth,
51937
- width: column.width,
51938
- maxWidth: column.maxWidth
51939
- }
51890
+ var headerRender = column.render('Header');
51891
+ return !(column === null || column === void 0 ? void 0 : column.isMobileOnly) && jsxRuntime.jsx(TableHeadCell$1, __assign({}, column.getHeaderProps(function (props) {
51892
+ return [props, column.sortable ? column.getSortByToggleProps({
51893
+ title: t('sortColumnTitle', 'Urutkan') || 'Urutkan'
51894
+ }) : {
51895
+ onClick: column.onToggle
51896
+ }, {
51897
+ style: {
51898
+ minWidth: column.minWidth,
51899
+ width: column.width,
51900
+ maxWidth: column.maxWidth
51901
+ }
51902
+ }];
51940
51903
  }), {
51941
- children: [column.render('Header'), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsxRuntime.jsx(Required$1, {
51942
- children: "*"
51943
- }, void 0) : '']
51904
+ children: typeof headerRender === 'string' ? jsxRuntime.jsx(TableHeaderCellContainer, __assign({
51905
+ isSortedDesc: column.isSortedDesc,
51906
+ unsortable: !column.sortable,
51907
+ isToggleable: !!column.onToggle,
51908
+ isToggled: column.isToggled,
51909
+ css: {
51910
+ padding: 0
51911
+ }
51912
+ }, {
51913
+ children: jsxRuntime.jsxs(TableHeadCellContent, __assign({
51914
+ heading: "headerTable"
51915
+ }, {
51916
+ children: [headerRender.toUpperCase(), (column === null || column === void 0 ? void 0 : column.isRequired) ? jsxRuntime.jsx(Required$1, {
51917
+ children: "*"
51918
+ }, void 0) : '']
51919
+ }), void 0)
51920
+ }), void 0) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
51921
+ children: [headerRender, (column === null || column === void 0 ? void 0 : column.isRequired) ? jsxRuntime.jsx(Required$1, {
51922
+ children: "*"
51923
+ }, void 0) : '']
51924
+ }, void 0)
51944
51925
  }), void 0);
51945
51926
  })
51946
51927
  }), void 0);
@@ -52125,11 +52106,234 @@
52125
52106
  }, void 0)]
52126
52107
  }), void 0);
52127
52108
  }
52109
+ var rotateKeyframe = keyframes({
52110
+ '100%': {
52111
+ transform: 'rotate(360deg)'
52112
+ }
52113
+ });
52114
+ var dashKeyframe = keyframes({
52115
+ '0%': {
52116
+ strokeDasharray: '0,125',
52117
+ strokeDashoffset: -8
52118
+ },
52119
+ '50%': {
52120
+ strokeDasharray: 125,
52121
+ strokeDashoffset: -10
52122
+ },
52123
+ '100%': {
52124
+ strokeDasharray: 125,
52125
+ strokeDashoffset: -125
52126
+ }
52127
+ });
52128
+ var LoadingContainer = react.styled('div', {
52129
+ position: 'absolute',
52130
+ width: 152,
52131
+ height: 152,
52132
+ top: '50%',
52133
+ left: '50%',
52134
+ transform: 'translate(-50%,-50%)'
52135
+ });
52136
+ var LogoSvg = react.styled('svg', {
52137
+ height: 152,
52138
+ position: 'absolute',
52139
+ width: 152
52140
+ });
52141
+ var LoadingSvg = react.styled('svg', {
52142
+ animation: "".concat(rotateKeyframe, " 2s linear infinite"),
52143
+ height: 152,
52144
+ position: 'absolute',
52145
+ width: 152,
52146
+ top: '-22px'
52147
+ });
52148
+ var LoadingBackground = react.styled('div', {
52149
+ background: 'conic-gradient(#fff5f6, #FF97A4, #02B4F3, #81CF77, #6D60AE, #FF6C53 320deg)',
52150
+ width: '100%',
52151
+ height: '100%'
52152
+ });
52153
+ var LoadingCircle = react.styled('circle', {
52154
+ stroke: 'white',
52155
+ strokeLinecap: 'round',
52156
+ transformOrigin: '50% 50%',
52157
+ transform: 'rotate(-102deg)',
52158
+ animation: "".concat(dashKeyframe, " 1.5s ease-in-out infinite")
52159
+ });
52160
+ var LoadingLabel = react.styled(Paragraph, {
52161
+ position: 'relative',
52162
+ top: 100
52163
+ });
52164
+ function CircularLoadingBar(_a) {
52165
+ var label = _a.label;
52166
+ return jsxRuntime.jsxs(LoadingContainer, {
52167
+ children: [jsxRuntime.jsxs(LogoSvg, __assign({
52168
+ xmlns: "http://www.w3.org/2000/svg",
52169
+ width: "152",
52170
+ height: "152",
52171
+ viewBox: "0 0 152 152",
52172
+ fill: "none"
52173
+ }, {
52174
+ children: [jsxRuntime.jsxs("g", __assign({
52175
+ filter: "url(#filter0_ddd_4303_695)"
52176
+ }, {
52177
+ children: [jsxRuntime.jsx("rect", {
52178
+ x: "46.0004",
52179
+ y: "23.9999",
52180
+ width: "60",
52181
+ height: "60",
52182
+ rx: "30",
52183
+ fill: "url(#paint0_linear_4303_695)"
52184
+ }, void 0), jsxRuntime.jsx("rect", {
52185
+ x: "46",
52186
+ y: "24",
52187
+ width: "60",
52188
+ height: "60",
52189
+ rx: "30",
52190
+ stroke: "url(#paint1_linear_4303_695)",
52191
+ "stroke-opacity": "0.99",
52192
+ "stroke-width": "5"
52193
+ }, void 0), jsxRuntime.jsx("path", {
52194
+ "fill-rule": "evenodd",
52195
+ "clip-rule": "evenodd",
52196
+ 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",
52197
+ fill: "white"
52198
+ }, void 0)]
52199
+ }), void 0), jsxRuntime.jsxs("defs", {
52200
+ children: [jsxRuntime.jsxs("filter", __assign({
52201
+ id: "filter0_ddd_4303_695",
52202
+ x: "0.5",
52203
+ y: "0.5",
52204
+ width: "151",
52205
+ height: "151",
52206
+ filterUnits: "userSpaceOnUse",
52207
+ "color-interpolation-filters": "sRGB"
52208
+ }, {
52209
+ children: [jsxRuntime.jsx("feFlood", {
52210
+ "flood-opacity": "0",
52211
+ result: "BackgroundImageFix"
52212
+ }, void 0), jsxRuntime.jsx("feColorMatrix", {
52213
+ in: "SourceAlpha",
52214
+ type: "matrix",
52215
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
52216
+ result: "hardAlpha"
52217
+ }, void 0), jsxRuntime.jsx("feOffset", {
52218
+ dy: "22"
52219
+ }, void 0), jsxRuntime.jsx("feGaussianBlur", {
52220
+ stdDeviation: "21.5"
52221
+ }, void 0), jsxRuntime.jsx("feColorMatrix", {
52222
+ type: "matrix",
52223
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
52224
+ }, void 0), jsxRuntime.jsx("feBlend", {
52225
+ mode: "normal",
52226
+ in2: "BackgroundImageFix",
52227
+ result: "effect1_dropShadow_4303_695"
52228
+ }, void 0), jsxRuntime.jsx("feColorMatrix", {
52229
+ in: "SourceAlpha",
52230
+ type: "matrix",
52231
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
52232
+ result: "hardAlpha"
52233
+ }, void 0), jsxRuntime.jsx("feOffset", {
52234
+ dy: "9"
52235
+ }, void 0), jsxRuntime.jsx("feGaussianBlur", {
52236
+ stdDeviation: "12"
52237
+ }, void 0), jsxRuntime.jsx("feColorMatrix", {
52238
+ type: "matrix",
52239
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"
52240
+ }, void 0), jsxRuntime.jsx("feBlend", {
52241
+ mode: "normal",
52242
+ in2: "effect1_dropShadow_4303_695",
52243
+ result: "effect2_dropShadow_4303_695"
52244
+ }, void 0), jsxRuntime.jsx("feColorMatrix", {
52245
+ in: "SourceAlpha",
52246
+ type: "matrix",
52247
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
52248
+ result: "hardAlpha"
52249
+ }, void 0), jsxRuntime.jsx("feOffset", {
52250
+ dy: "3"
52251
+ }, void 0), jsxRuntime.jsx("feGaussianBlur", {
52252
+ stdDeviation: "4.5"
52253
+ }, void 0), jsxRuntime.jsx("feColorMatrix", {
52254
+ type: "matrix",
52255
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"
52256
+ }, void 0), jsxRuntime.jsx("feBlend", {
52257
+ mode: "normal",
52258
+ in2: "effect2_dropShadow_4303_695",
52259
+ result: "effect3_dropShadow_4303_695"
52260
+ }, void 0), jsxRuntime.jsx("feBlend", {
52261
+ mode: "normal",
52262
+ in: "SourceGraphic",
52263
+ in2: "effect3_dropShadow_4303_695",
52264
+ result: "shape"
52265
+ }, void 0)]
52266
+ }), void 0), jsxRuntime.jsxs("linearGradient", __assign({
52267
+ id: "paint0_linear_4303_695",
52268
+ x1: "76.0004",
52269
+ y1: "23.9999",
52270
+ x2: "76.0004",
52271
+ y2: "83.9999",
52272
+ gradientUnits: "userSpaceOnUse"
52273
+ }, {
52274
+ children: [jsxRuntime.jsx("stop", {
52275
+ "stop-color": "#B3DCA7"
52276
+ }, void 0), jsxRuntime.jsx("stop", {
52277
+ offset: "1",
52278
+ "stop-color": "#22BDB6"
52279
+ }, void 0)]
52280
+ }), void 0), jsxRuntime.jsxs("linearGradient", __assign({
52281
+ id: "paint1_linear_4303_695",
52282
+ x1: "106",
52283
+ y1: "68.8332",
52284
+ x2: "50",
52285
+ y2: "37.3332",
52286
+ gradientUnits: "userSpaceOnUse"
52287
+ }, {
52288
+ children: [jsxRuntime.jsx("stop", {
52289
+ "stop-color": "#F4F4F4"
52290
+ }, void 0), jsxRuntime.jsx("stop", {
52291
+ offset: "1",
52292
+ "stop-color": "white"
52293
+ }, void 0)]
52294
+ }), void 0)]
52295
+ }, void 0)]
52296
+ }), void 0), jsxRuntime.jsxs(LoadingSvg, __assign({
52297
+ viewBox: "0 0 100 100",
52298
+ xmlns: "http://www.w3.org/2000/svg"
52299
+ }, {
52300
+ children: [jsxRuntime.jsx("defs", {
52301
+ children: jsxRuntime.jsx("mask", __assign({
52302
+ id: "mask"
52303
+ }, {
52304
+ children: jsxRuntime.jsx(LoadingCircle, {
52305
+ cx: "50",
52306
+ cy: "50",
52307
+ r: "20",
52308
+ fill: "none",
52309
+ "stroke-width": "4",
52310
+ "stroke-miterlimit": "10"
52311
+ }, void 0)
52312
+ }), void 0)
52313
+ }, void 0), jsxRuntime.jsx("foreignObject", __assign({
52314
+ x: "0",
52315
+ y: "0",
52316
+ width: "100",
52317
+ height: "100",
52318
+ mask: "url(#mask)"
52319
+ }, {
52320
+ children: jsxRuntime.jsx(LoadingBackground, {}, void 0)
52321
+ }), void 0)]
52322
+ }), void 0), label && jsxRuntime.jsx(LoadingLabel, __assign({
52323
+ color: "white",
52324
+ align: "center"
52325
+ }, {
52326
+ children: label
52327
+ }), void 0)]
52328
+ }, void 0);
52329
+ }
52128
52330
  var interval;
52129
52331
  function LoadingBar(props) {
52130
52332
  var show = props.show,
52131
52333
  onCompleted = props.onCompleted,
52132
- intervalTime = props.interval;
52334
+ intervalTime = props.interval,
52335
+ isPageLoader = props.isPageLoader,
52336
+ pageLoaderLabel = props.pageLoaderLabel;
52133
52337
  var _a = React.useState(0),
52134
52338
  progress = _a[0],
52135
52339
  setProgress = _a[1];
@@ -52162,6 +52366,34 @@
52162
52366
  onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted();
52163
52367
  }
52164
52368
  }, [progress, onCompleted]);
52369
+ if (!show) return jsxRuntime.jsx(React__default["default"].Fragment, {}, void 0);
52370
+ if (isPageLoader) {
52371
+ return jsxRuntime.jsx(ModalDialog, __assign({
52372
+ open: show,
52373
+ modal: true,
52374
+ allowPinchZoom: false,
52375
+ width: "100%",
52376
+ layer: 2000,
52377
+ isMobile: false,
52378
+ css: {
52379
+ borderRadius: '2px !important',
52380
+ '& > div': {
52381
+ backgroundColor: 'transparent !important',
52382
+ borderRadius: '2px !important'
52383
+ }
52384
+ }
52385
+ }, {
52386
+ children: jsxRuntime.jsx(ModalDialogContent, __assign({
52387
+ css: {
52388
+ padding: '$spacing-08 $spacing-11'
52389
+ }
52390
+ }, {
52391
+ children: jsxRuntime.jsx(CircularLoadingBar, {
52392
+ label: pageLoaderLabel
52393
+ }, void 0)
52394
+ }), void 0)
52395
+ }), void 0);
52396
+ }
52165
52397
  return typeof (props === null || props === void 0 ? void 0 : props.progress) === 'number' ? jsxRuntime.jsx(PrimitiveLoadingBar, __assign({}, props, {
52166
52398
  visibility: true
52167
52399
  }), void 0) : jsxRuntime.jsx(PrimitiveLoadingBar, __assign({}, props, {
@@ -52174,7 +52406,8 @@
52174
52406
  show: false,
52175
52407
  interval: 100,
52176
52408
  description: 'Loading...',
52177
- size: 'md'
52409
+ size: 'md',
52410
+ isPageLoader: false
52178
52411
  };
52179
52412
 
52180
52413
  var Container$4 = styled(Flex$1, {
@@ -53342,7 +53575,6 @@
53342
53575
  label: tooltipLabel(name, variants)
53343
53576
  }, {
53344
53577
  children: jsxRuntime.jsxs(Box, __assign({
53345
- gap: 2,
53346
53578
  css: __assign({
53347
53579
  display: 'flex',
53348
53580
  alignItems: 'center',
@@ -53390,7 +53622,7 @@
53390
53622
  padding: '4px 8px',
53391
53623
  minWidth: 'unset',
53392
53624
  justifyContent: 'flex-start',
53393
- mr: 'auto'
53625
+ marginRight: 'auto'
53394
53626
  },
53395
53627
  type: "varian"
53396
53628
  }, {
@@ -57208,6 +57440,7 @@
57208
57440
  exports.PriceColumn = PriceColumn;
57209
57441
  exports.Progress = Progress$1;
57210
57442
  exports.ProgressIndicator = ProgressIndicator;
57443
+ exports.Provider = Provider;
57211
57444
  exports.RANGE_CONTROL = RANGE_CONTROL;
57212
57445
  exports.RANGE_MONTH = RANGE_MONTH;
57213
57446
  exports.RANGE_PICKER = RANGE_PICKER;
@@ -57266,6 +57499,9 @@
57266
57499
  exports.ToastContext = ToastContext;
57267
57500
  exports.ToastProvider = ToastProvider;
57268
57501
  exports.Tooltip = Tooltip$1;
57502
+ exports.TooltipBase = TooltipBase;
57503
+ exports.TooltipContent = TooltipContent;
57504
+ exports.TooltipTrigger = TooltipTrigger;
57269
57505
  exports.UPDATE_PICKER = UPDATE_PICKER;
57270
57506
  exports.Upload = Upload;
57271
57507
  exports.WEEKLY = WEEKLY;