@majoo-ui/react 1.60.21-rc.1 → 1.60.21

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('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';
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';
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$$ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/ThemeProvider.js";
60
+ var _jsxFileName$12 = "/Users/hangga/sourcecode/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$$,
69
+ fileName: _jsxFileName$12,
70
70
  lineNumber: 5,
71
71
  columnNumber: 10
72
72
  }
@@ -1498,7 +1498,7 @@
1498
1498
  globalStyles();
1499
1499
  };
1500
1500
 
1501
- var _jsxFileName$_ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
1501
+ var _jsxFileName$11 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/majoo-provider/MajooProvider.js";
1502
1502
  function MajooProvider({
1503
1503
  children,
1504
1504
  theme: theme$1 = theme,
@@ -1514,7 +1514,7 @@
1514
1514
  theme: theme$1,
1515
1515
  __self: this,
1516
1516
  __source: {
1517
- fileName: _jsxFileName$_,
1517
+ fileName: _jsxFileName$11,
1518
1518
  lineNumber: 14,
1519
1519
  columnNumber: 5
1520
1520
  }
@@ -1527,7 +1527,7 @@
1527
1527
  disableGlobalStyle: PropTypes__default["default"].bool
1528
1528
  };
1529
1529
 
1530
- var Box = styled('div', {
1530
+ const Box = styled('div', {
1531
1531
  variants: {
1532
1532
  mobileOnly: {
1533
1533
  true: {
@@ -1558,7 +1558,7 @@
1558
1558
  return variants;
1559
1559
  }
1560
1560
 
1561
- var Flex$1 = styled('div', {
1561
+ const Flex$1 = styled('div', {
1562
1562
  display: 'flex',
1563
1563
  variants: {
1564
1564
  direction: {
@@ -1623,48 +1623,30 @@
1623
1623
  flexWrap: 'wrap-reverse'
1624
1624
  }
1625
1625
  },
1626
- gap: seqNumberVariants$1(function (value) {
1627
- return {
1628
- gap: "$spacing-".concat(value < 10 ? '0' + value : value)
1629
- };
1630
- }, 12),
1631
- m: seqNumberVariants$1(function (value) {
1632
- return {
1633
- margin: "$spacing-".concat(value < 10 ? '0' + value : value)
1634
- };
1635
- }, 12),
1636
- mt: seqNumberVariants$1(function (value) {
1637
- return {
1638
- marginTop: "$spacing-".concat(value < 10 ? '0' + value : value)
1639
- };
1640
- }, 12),
1641
- mb: seqNumberVariants$1(function (value) {
1642
- return {
1643
- marginBottom: "$spacing-".concat(value < 10 ? '0' + value : value)
1644
- };
1645
- }, 12),
1646
- mr: seqNumberVariants$1(function (value) {
1647
- return {
1648
- marginRight: "$spacing-".concat(value < 10 ? '0' + value : value)
1649
- };
1650
- }, 12),
1651
- ml: seqNumberVariants$1(function (value) {
1652
- return {
1653
- marginLeft: "$spacing-".concat(value < 10 ? '0' + value : value)
1654
- };
1655
- }, 12),
1656
- mx: seqNumberVariants$1(function (value) {
1657
- return {
1658
- marginRight: "$spacing-".concat(value < 10 ? '0' + value : value),
1659
- marginLeft: "$spacing-".concat(value < 10 ? '0' + value : value)
1660
- };
1661
- }, 12),
1662
- my: seqNumberVariants$1(function (value) {
1663
- return {
1664
- marginTop: "$spacing-".concat(value < 10 ? '0' + value : value),
1665
- marginBottom: "$spacing-".concat(value < 10 ? '0' + value : value)
1666
- };
1667
- }, 12),
1626
+ gap: seqNumberVariants$1(value => ({
1627
+ gap: `$spacing-${value < 10 ? '0' + value : value}`
1628
+ }), 12),
1629
+ m: seqNumberVariants$1(value => ({
1630
+ m: `$spacing-${value < 10 ? '0' + value : value}`
1631
+ }), 12),
1632
+ mt: seqNumberVariants$1(value => ({
1633
+ mt: `$spacing-${value < 10 ? '0' + value : value}`
1634
+ }), 12),
1635
+ mb: seqNumberVariants$1(value => ({
1636
+ mb: `$spacing-${value < 10 ? '0' + value : value}`
1637
+ }), 12),
1638
+ mr: seqNumberVariants$1(value => ({
1639
+ mr: `$spacing-${value < 10 ? '0' + value : value}`
1640
+ }), 12),
1641
+ ml: seqNumberVariants$1(value => ({
1642
+ ml: `$spacing-${value < 10 ? '0' + value : value}`
1643
+ }), 12),
1644
+ mx: seqNumberVariants$1(value => ({
1645
+ mx: `$spacing-${value < 10 ? '0' + value : value}`
1646
+ }), 12),
1647
+ my: seqNumberVariants$1(value => ({
1648
+ my: `$spacing-${value < 10 ? '0' + value : value}`
1649
+ }), 12),
1668
1650
  mobileOnly: {
1669
1651
  true: {
1670
1652
  '@lg': {
@@ -1682,278 +1664,29 @@
1682
1664
  }
1683
1665
  }
1684
1666
  });
1667
+ Flex$1.propTypes = {
1668
+ direction: PropTypes__default["default"].string,
1669
+ align: PropTypes__default["default"].string,
1670
+ justify: PropTypes__default["default"].string,
1671
+ wrap: PropTypes__default["default"].string,
1672
+ gap: PropTypes__default["default"].number,
1673
+ m: PropTypes__default["default"].number,
1674
+ mt: PropTypes__default["default"].number,
1675
+ mb: PropTypes__default["default"].number,
1676
+ mr: PropTypes__default["default"].number,
1677
+ ml: PropTypes__default["default"].number,
1678
+ mx: PropTypes__default["default"].number,
1679
+ my: PropTypes__default["default"].number
1680
+ };
1685
1681
  Flex$1.defaultProps = {
1686
1682
  direction: 'row',
1687
1683
  align: 'stretch',
1688
1684
  justify: 'start',
1689
- wrap: 'noWrap'
1685
+ wrap: 'noWrap',
1686
+ gap: 0
1690
1687
  };
1691
1688
  Flex$1.displayName = 'Flex';
1692
1689
 
1693
- var GridComponent = styled('div', {
1694
- display: 'grid',
1695
- variants: {
1696
- align: {
1697
- start: {
1698
- alignItems: 'start'
1699
- },
1700
- center: {
1701
- alignItems: 'center'
1702
- },
1703
- end: {
1704
- alignItems: 'end'
1705
- },
1706
- stretch: {
1707
- alignItems: 'stretch'
1708
- },
1709
- baseline: {
1710
- alignItems: 'baseline'
1711
- }
1712
- },
1713
- justify: {
1714
- start: {
1715
- justifyContent: 'start'
1716
- },
1717
- center: {
1718
- justifyContent: 'center'
1719
- },
1720
- end: {
1721
- justifyContent: 'end'
1722
- },
1723
- between: {
1724
- justifyContent: 'space-between'
1725
- }
1726
- },
1727
- flow: {
1728
- row: {
1729
- gridAutoFlow: 'row'
1730
- },
1731
- column: {
1732
- gridAutoFlow: 'column'
1733
- },
1734
- dense: {
1735
- gridAutoFlow: 'dense'
1736
- },
1737
- rowDense: {
1738
- gridAutoFlow: 'row dense'
1739
- },
1740
- columnDense: {
1741
- gridAutoFlow: 'column dense'
1742
- }
1743
- },
1744
- columns: seqNumberVariants$1(function (value) {
1745
- return {
1746
- gridTemplateColumns: "repeat(".concat(value, ", 1fr)")
1747
- };
1748
- }, 10),
1749
- rows: seqNumberVariants$1(function (value) {
1750
- return {
1751
- gridTemplateRows: "repeat(".concat(value, ", 1fr)")
1752
- };
1753
- }, 10),
1754
- placeItems: {
1755
- stretch: {
1756
- placeItems: 'stretch'
1757
- },
1758
- start: {
1759
- placeItems: 'start'
1760
- },
1761
- end: {
1762
- placeItems: 'end'
1763
- },
1764
- center: {
1765
- placeItems: 'center'
1766
- },
1767
- left: {
1768
- placeItems: 'left'
1769
- },
1770
- right: {
1771
- placeItems: 'right'
1772
- }
1773
- },
1774
- gap: {
1775
- 1: {
1776
- gap: '$spacing-03'
1777
- },
1778
- 2: {
1779
- gap: '$spacing-05'
1780
- },
1781
- 3: {
1782
- gap: '$spacing-06'
1783
- },
1784
- 4: {
1785
- gap: '$spacing-07'
1786
- },
1787
- 5: {
1788
- gap: '$spacing-08'
1789
- },
1790
- 6: {
1791
- gap: '$spacing-09'
1792
- },
1793
- 7: {
1794
- gap: '$spacing-10'
1795
- },
1796
- 8: {
1797
- gap: '$spacing-11'
1798
- },
1799
- 9: {
1800
- gap: '$spacing-12'
1801
- }
1802
- },
1803
- gapX: {
1804
- normal: {
1805
- columnGap: 'normal'
1806
- },
1807
- 1: {
1808
- columnGap: '$spacing-03'
1809
- },
1810
- 2: {
1811
- columnGap: '$spacing-05'
1812
- },
1813
- 3: {
1814
- columnGap: '$spacing-06'
1815
- },
1816
- 4: {
1817
- columnGap: '$spacing-07'
1818
- },
1819
- 5: {
1820
- columnGap: '$spacing-08'
1821
- },
1822
- 6: {
1823
- columnGap: '$spacing-09'
1824
- },
1825
- 7: {
1826
- columnGap: '$spacing-10'
1827
- },
1828
- 8: {
1829
- columnGap: '$spacing-11'
1830
- },
1831
- 9: {
1832
- columnGap: '$spacing-12'
1833
- }
1834
- },
1835
- gapY: {
1836
- 1: {
1837
- rowGap: '$spacing-03'
1838
- },
1839
- 2: {
1840
- rowGap: '$spacing-05'
1841
- },
1842
- 3: {
1843
- rowGap: '$spacing-06'
1844
- },
1845
- 4: {
1846
- rowGap: '$spacing-07'
1847
- },
1848
- 5: {
1849
- rowGap: '$spacing-08'
1850
- },
1851
- 6: {
1852
- rowGap: '$spacing-09'
1853
- },
1854
- 7: {
1855
- rowGap: '$spacing-10'
1856
- },
1857
- 8: {
1858
- rowGap: '$spacing-11'
1859
- },
1860
- 9: {
1861
- rowGap: '$spacing-12'
1862
- }
1863
- },
1864
- mobileOnly: {
1865
- true: {
1866
- '@lg': {
1867
- display: 'none !important'
1868
- }
1869
- }
1870
- },
1871
- desktopOnly: {
1872
- true: {
1873
- display: 'none !important',
1874
- '@lg': {
1875
- display: 'grid !important'
1876
- }
1877
- }
1878
- }
1879
- }
1880
- });
1881
- var Grid = function Grid(_a) {
1882
- var children = _a.children,
1883
- props = __rest(_a, ["children"]);
1884
- return jsxRuntime.jsx(GridComponent, __assign({}, props, {
1885
- css: __assign(__assign({}, props.css), {
1886
- gridAutoColumns: props.autoColumns,
1887
- gridAutoRows: props.autoRows,
1888
- gridTemplateColumns: props.templateColumns,
1889
- gridTemplateRows: props.templateRows
1890
- })
1891
- }, {
1892
- children: children
1893
- }), void 0);
1894
- };
1895
- Grid.propTypes = {
1896
- align: PropTypes__default["default"].string,
1897
- justify: PropTypes__default["default"].string,
1898
- autoColumns: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1899
- autoRows: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1900
- autoFlow: PropTypes__default["default"].string,
1901
- templateColumns: PropTypes__default["default"].string,
1902
- templateRows: PropTypes__default["default"].string,
1903
- columns: PropTypes__default["default"].number,
1904
- rows: PropTypes__default["default"].number,
1905
- gap: PropTypes__default["default"].number,
1906
- gapX: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1907
- gapY: PropTypes__default["default"].number
1908
- };
1909
- Grid.displayName = 'Grid';
1910
- function spanFn(value) {
1911
- return value === 'auto' ? 'auto' : "span ".concat(value, "/span ").concat(value);
1912
- }
1913
- var GridItemComponent = styled('div', {
1914
- variants: {
1915
- colSpan: __assign({
1916
- auto: spanFn('auto')
1917
- }, seqNumberVariants$1(function (value) {
1918
- return {
1919
- gridColumn: spanFn(value)
1920
- };
1921
- }, 10)),
1922
- rowSpan: __assign({
1923
- auto: spanFn('auto')
1924
- }, seqNumberVariants$1(function (value) {
1925
- return {
1926
- gridRow: spanFn(value)
1927
- };
1928
- }, 10))
1929
- }
1930
- });
1931
- var GridItem = function GridItem(_a) {
1932
- var children = _a.children,
1933
- props = __rest(_a, ["children"]);
1934
- return jsxRuntime.jsx(GridItemComponent, __assign({}, props, {
1935
- css: __assign(__assign({}, props.css), {
1936
- gridArea: props.area,
1937
- gridColumnStart: props.colStart,
1938
- gridColumnEnd: props.colEnd,
1939
- gridRowStart: props.rowStart,
1940
- gridRowEnd: props.rowEnd
1941
- })
1942
- }, {
1943
- children: children
1944
- }), void 0);
1945
- };
1946
- GridItem.propTypes = {
1947
- gridArea: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1948
- colSpan: PropTypes__default["default"].number,
1949
- rowSpan: PropTypes__default["default"].number,
1950
- colStart: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1951
- colEnd: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1952
- rowStart: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1953
- rowEnd: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
1954
- };
1955
- GridItem.displayName = 'Grid Item';
1956
-
1957
1690
  function _extends() {
1958
1691
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
1959
1692
  for (var e = 1; e < arguments.length; e++) {
@@ -1976,8 +1709,279 @@
1976
1709
  return t;
1977
1710
  }
1978
1711
 
1979
- const _excluded$y = ["children", "isCollapse", "css", "contentHeader"];
1980
- var _jsxFileName$Z = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
1712
+ const _excluded$B = ["children"],
1713
+ _excluded2$4 = ["children"];
1714
+ var _jsxFileName$10 = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/grid/Grid.js";
1715
+ const GridComponent = styled('div', {
1716
+ display: 'grid',
1717
+ variants: {
1718
+ align: {
1719
+ start: {
1720
+ alignItems: 'start'
1721
+ },
1722
+ center: {
1723
+ alignItems: 'center'
1724
+ },
1725
+ end: {
1726
+ alignItems: 'end'
1727
+ },
1728
+ stretch: {
1729
+ alignItems: 'stretch'
1730
+ },
1731
+ baseline: {
1732
+ alignItems: 'baseline'
1733
+ }
1734
+ },
1735
+ justify: {
1736
+ start: {
1737
+ justifyContent: 'start'
1738
+ },
1739
+ center: {
1740
+ justifyContent: 'center'
1741
+ },
1742
+ end: {
1743
+ justifyContent: 'end'
1744
+ },
1745
+ between: {
1746
+ justifyContent: 'space-between'
1747
+ }
1748
+ },
1749
+ flow: {
1750
+ row: {
1751
+ gridAutoFlow: 'row'
1752
+ },
1753
+ column: {
1754
+ gridAutoFlow: 'column'
1755
+ },
1756
+ dense: {
1757
+ gridAutoFlow: 'dense'
1758
+ },
1759
+ rowDense: {
1760
+ gridAutoFlow: 'row dense'
1761
+ },
1762
+ columnDense: {
1763
+ gridAutoFlow: 'column dense'
1764
+ }
1765
+ },
1766
+ columns: seqNumberVariants$1(value => ({
1767
+ gridTemplateColumns: `repeat(${value}, 1fr)`
1768
+ }), 10),
1769
+ rows: seqNumberVariants$1(value => ({
1770
+ gridTemplateRows: `repeat(${value}, 1fr)`
1771
+ }), 10),
1772
+ placeItems: {
1773
+ stretch: {
1774
+ placeItems: 'stretch'
1775
+ },
1776
+ start: {
1777
+ placeItems: 'start'
1778
+ },
1779
+ end: {
1780
+ placeItems: 'end'
1781
+ },
1782
+ center: {
1783
+ placeItems: 'center'
1784
+ },
1785
+ left: {
1786
+ placeItems: 'left'
1787
+ },
1788
+ right: {
1789
+ placeItems: 'right'
1790
+ }
1791
+ },
1792
+ gap: {
1793
+ 1: {
1794
+ gap: '$spacing-03'
1795
+ },
1796
+ 2: {
1797
+ gap: '$spacing-05'
1798
+ },
1799
+ 3: {
1800
+ gap: '$spacing-06'
1801
+ },
1802
+ 4: {
1803
+ gap: '$spacing-07'
1804
+ },
1805
+ 5: {
1806
+ gap: '$spacing-08'
1807
+ },
1808
+ 6: {
1809
+ gap: '$spacing-09'
1810
+ },
1811
+ 7: {
1812
+ gap: '$spacing-10'
1813
+ },
1814
+ 8: {
1815
+ gap: '$spacing-11'
1816
+ },
1817
+ 9: {
1818
+ gap: '$spacing-12'
1819
+ }
1820
+ },
1821
+ gapX: {
1822
+ normal: {
1823
+ columnGap: 'normal'
1824
+ },
1825
+ 1: {
1826
+ columnGap: '$spacing-03'
1827
+ },
1828
+ 2: {
1829
+ columnGap: '$spacing-05'
1830
+ },
1831
+ 3: {
1832
+ columnGap: '$spacing-06'
1833
+ },
1834
+ 4: {
1835
+ columnGap: '$spacing-07'
1836
+ },
1837
+ 5: {
1838
+ columnGap: '$spacing-08'
1839
+ },
1840
+ 6: {
1841
+ columnGap: '$spacing-09'
1842
+ },
1843
+ 7: {
1844
+ columnGap: '$spacing-10'
1845
+ },
1846
+ 8: {
1847
+ columnGap: '$spacing-11'
1848
+ },
1849
+ 9: {
1850
+ columnGap: '$spacing-12'
1851
+ }
1852
+ },
1853
+ gapY: {
1854
+ 1: {
1855
+ rowGap: '$spacing-03'
1856
+ },
1857
+ 2: {
1858
+ rowGap: '$spacing-05'
1859
+ },
1860
+ 3: {
1861
+ rowGap: '$spacing-06'
1862
+ },
1863
+ 4: {
1864
+ rowGap: '$spacing-07'
1865
+ },
1866
+ 5: {
1867
+ rowGap: '$spacing-08'
1868
+ },
1869
+ 6: {
1870
+ rowGap: '$spacing-09'
1871
+ },
1872
+ 7: {
1873
+ rowGap: '$spacing-10'
1874
+ },
1875
+ 8: {
1876
+ rowGap: '$spacing-11'
1877
+ },
1878
+ 9: {
1879
+ rowGap: '$spacing-12'
1880
+ }
1881
+ },
1882
+ mobileOnly: {
1883
+ true: {
1884
+ '@lg': {
1885
+ display: 'none !important'
1886
+ }
1887
+ }
1888
+ },
1889
+ desktopOnly: {
1890
+ true: {
1891
+ display: 'none !important',
1892
+ '@lg': {
1893
+ display: 'grid !important'
1894
+ }
1895
+ }
1896
+ }
1897
+ }
1898
+ });
1899
+ const Grid = _ref => {
1900
+ let {
1901
+ children
1902
+ } = _ref,
1903
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1904
+ return /*#__PURE__*/React__default["default"].createElement(GridComponent, _extends({}, props, {
1905
+ css: Object.assign({}, props.css, {
1906
+ gridAutoColumns: props.autoColumns,
1907
+ gridAutoRows: props.autoRows,
1908
+ gridTemplateColumns: props.templateColumns,
1909
+ gridTemplateRows: props.templateRows
1910
+ }),
1911
+ __self: undefined,
1912
+ __source: {
1913
+ fileName: _jsxFileName$10,
1914
+ lineNumber: 200,
1915
+ columnNumber: 5
1916
+ }
1917
+ }), children);
1918
+ };
1919
+ Grid.propTypes = {
1920
+ align: PropTypes__default["default"].string,
1921
+ justify: PropTypes__default["default"].string,
1922
+ autoColumns: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1923
+ autoRows: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1924
+ autoFlow: PropTypes__default["default"].string,
1925
+ templateColumns: PropTypes__default["default"].string,
1926
+ templateRows: PropTypes__default["default"].string,
1927
+ columns: PropTypes__default["default"].number,
1928
+ rows: PropTypes__default["default"].number,
1929
+ gap: PropTypes__default["default"].number,
1930
+ gapX: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1931
+ gapY: PropTypes__default["default"].number
1932
+ };
1933
+ Grid.displayName = 'Grid';
1934
+ function spanFn(value) {
1935
+ return value === 'auto' ? 'auto' : `span ${value}/span ${value}`;
1936
+ }
1937
+ const GridItemComponent = styled('div', {
1938
+ variants: {
1939
+ colSpan: Object.assign({
1940
+ auto: spanFn('auto')
1941
+ }, seqNumberVariants$1(value => ({
1942
+ gridColumn: spanFn(value)
1943
+ }), 10)),
1944
+ rowSpan: Object.assign({
1945
+ auto: spanFn('auto')
1946
+ }, seqNumberVariants$1(value => ({
1947
+ gridRow: spanFn(value)
1948
+ }), 10))
1949
+ }
1950
+ });
1951
+ const GridItem = _ref2 => {
1952
+ let {
1953
+ children
1954
+ } = _ref2,
1955
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
1956
+ return /*#__PURE__*/React__default["default"].createElement(GridItemComponent, _extends({}, props, {
1957
+ css: Object.assign({}, props.css, {
1958
+ gridArea: props.area,
1959
+ gridColumnStart: props.colStart,
1960
+ gridColumnEnd: props.colEnd,
1961
+ gridRowStart: props.rowStart,
1962
+ gridRowEnd: props.rowEnd
1963
+ }),
1964
+ __self: undefined,
1965
+ __source: {
1966
+ fileName: _jsxFileName$10,
1967
+ lineNumber: 265,
1968
+ columnNumber: 5
1969
+ }
1970
+ }), children);
1971
+ };
1972
+ GridItem.propTypes = {
1973
+ gridArea: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1974
+ colSpan: PropTypes__default["default"].number,
1975
+ rowSpan: PropTypes__default["default"].number,
1976
+ colStart: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1977
+ colEnd: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1978
+ rowStart: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1979
+ rowEnd: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
1980
+ };
1981
+ GridItem.displayName = 'Grid Item';
1982
+
1983
+ const _excluded$A = ["children", "isCollapse", "css", "contentHeader"];
1984
+ var _jsxFileName$$ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/layout/pageContainer/PageContainer.js";
1981
1985
  const StyledDiv$2 = styled(Flex$1, {
1982
1986
  justifyContent: 'center',
1983
1987
  marginLeft: 'auto',
@@ -2020,7 +2024,7 @@
2020
2024
  css,
2021
2025
  contentHeader
2022
2026
  } = _ref,
2023
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
2027
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
2024
2028
  return /*#__PURE__*/React__default["default"].createElement(StyledDiv$2, _extends({
2025
2029
  id: "retina-container",
2026
2030
  css: Object.assign({
@@ -2029,7 +2033,7 @@
2029
2033
  }, props, {
2030
2034
  __self: undefined,
2031
2035
  __source: {
2032
- fileName: _jsxFileName$Z,
2036
+ fileName: _jsxFileName$$,
2033
2037
  lineNumber: 43,
2034
2038
  columnNumber: 5
2035
2039
  }
@@ -2443,8 +2447,8 @@
2443
2447
  }), void 0);
2444
2448
  });
2445
2449
 
2446
- const _excluded$x = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2447
- var _jsxFileName$Y = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/banner/Banner.js";
2450
+ const _excluded$z = ["title", "description", "variant", "link", "linkText", "onClick", "onRemove", "children", "bannerBlock", "icon"];
2451
+ var _jsxFileName$_ = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/banner/Banner.js";
2448
2452
  const Context$2 = /*#__PURE__*/React__namespace.createContext();
2449
2453
  const StyledBanner = styled(Flex$1, {
2450
2454
  maxWidth: '100%',
@@ -2546,7 +2550,7 @@
2546
2550
  }, props, {
2547
2551
  __self: undefined,
2548
2552
  __source: {
2549
- fileName: _jsxFileName$Y,
2553
+ fileName: _jsxFileName$_,
2550
2554
  lineNumber: 111,
2551
2555
  columnNumber: 3
2552
2556
  }
@@ -2567,7 +2571,7 @@
2567
2571
  }, props, {
2568
2572
  __self: undefined,
2569
2573
  __source: {
2570
- fileName: _jsxFileName$Y,
2574
+ fileName: _jsxFileName$_,
2571
2575
  lineNumber: 128,
2572
2576
  columnNumber: 3
2573
2577
  }
@@ -2603,7 +2607,7 @@
2603
2607
  return /*#__PURE__*/React__namespace.createElement(Context$2.Consumer, {
2604
2608
  __self: undefined,
2605
2609
  __source: {
2606
- fileName: _jsxFileName$Y,
2610
+ fileName: _jsxFileName$_,
2607
2611
  lineNumber: 159,
2608
2612
  columnNumber: 5
2609
2613
  }
@@ -2615,7 +2619,7 @@
2615
2619
  color: variant ? generateVariant(variant) : generateVariant(value.variant),
2616
2620
  __self: undefined,
2617
2621
  __source: {
2618
- fileName: _jsxFileName$Y,
2622
+ fileName: _jsxFileName$_,
2619
2623
  lineNumber: 161,
2620
2624
  columnNumber: 9
2621
2625
  }
@@ -2641,7 +2645,7 @@
2641
2645
  const BannerClose = () => /*#__PURE__*/React__namespace.createElement(Context$2.Consumer, {
2642
2646
  __self: undefined,
2643
2647
  __source: {
2644
- fileName: _jsxFileName$Y,
2648
+ fileName: _jsxFileName$_,
2645
2649
  lineNumber: 193,
2646
2650
  columnNumber: 3
2647
2651
  }
@@ -2653,7 +2657,7 @@
2653
2657
  },
2654
2658
  __self: undefined,
2655
2659
  __source: {
2656
- fileName: _jsxFileName$Y,
2660
+ fileName: _jsxFileName$_,
2657
2661
  lineNumber: 195,
2658
2662
  columnNumber: 7
2659
2663
  }
@@ -2662,7 +2666,7 @@
2662
2666
  size: "16px",
2663
2667
  __self: undefined,
2664
2668
  __source: {
2665
- fileName: _jsxFileName$Y,
2669
+ fileName: _jsxFileName$_,
2666
2670
  lineNumber: 202,
2667
2671
  columnNumber: 9
2668
2672
  }
@@ -2673,14 +2677,14 @@
2673
2677
  direction: "column",
2674
2678
  __self: undefined,
2675
2679
  __source: {
2676
- fileName: _jsxFileName$Y,
2680
+ fileName: _jsxFileName$_,
2677
2681
  lineNumber: 210,
2678
2682
  columnNumber: 5
2679
2683
  }
2680
2684
  }, /*#__PURE__*/React__namespace.createElement(Flex$1, {
2681
2685
  __self: undefined,
2682
2686
  __source: {
2683
- fileName: _jsxFileName$Y,
2687
+ fileName: _jsxFileName$_,
2684
2688
  lineNumber: 211,
2685
2689
  columnNumber: 7
2686
2690
  }
@@ -2689,7 +2693,7 @@
2689
2693
  direction: "row",
2690
2694
  __self: undefined,
2691
2695
  __source: {
2692
- fileName: _jsxFileName$Y,
2696
+ fileName: _jsxFileName$_,
2693
2697
  lineNumber: 212,
2694
2698
  columnNumber: 9
2695
2699
  }
@@ -2699,7 +2703,7 @@
2699
2703
  },
2700
2704
  __self: undefined,
2701
2705
  __source: {
2702
- fileName: _jsxFileName$Y,
2706
+ fileName: _jsxFileName$_,
2703
2707
  lineNumber: 213,
2704
2708
  columnNumber: 27
2705
2709
  }
@@ -2712,21 +2716,21 @@
2712
2716
  },
2713
2717
  __self: undefined,
2714
2718
  __source: {
2715
- fileName: _jsxFileName$Y,
2719
+ fileName: _jsxFileName$_,
2716
2720
  lineNumber: 214,
2717
2721
  columnNumber: 11
2718
2722
  }
2719
2723
  }, props.title && /*#__PURE__*/React__namespace.createElement(BannerTitle, {
2720
2724
  __self: undefined,
2721
2725
  __source: {
2722
- fileName: _jsxFileName$Y,
2726
+ fileName: _jsxFileName$_,
2723
2727
  lineNumber: 222,
2724
2728
  columnNumber: 29
2725
2729
  }
2726
2730
  }, props.title), props.description && /*#__PURE__*/React__namespace.createElement(BannerDescription, {
2727
2731
  __self: undefined,
2728
2732
  __source: {
2729
- fileName: _jsxFileName$Y,
2733
+ fileName: _jsxFileName$_,
2730
2734
  lineNumber: 223,
2731
2735
  columnNumber: 35
2732
2736
  }
@@ -2739,7 +2743,7 @@
2739
2743
  closeCenter: !props.title && !props.link,
2740
2744
  __self: undefined,
2741
2745
  __source: {
2742
- fileName: _jsxFileName$Y,
2746
+ fileName: _jsxFileName$_,
2743
2747
  lineNumber: 226,
2744
2748
  columnNumber: 9
2745
2749
  }
@@ -2748,7 +2752,7 @@
2748
2752
  size: "16px",
2749
2753
  __self: undefined,
2750
2754
  __source: {
2751
- fileName: _jsxFileName$Y,
2755
+ fileName: _jsxFileName$_,
2752
2756
  lineNumber: 234,
2753
2757
  columnNumber: 11
2754
2758
  }
@@ -2761,7 +2765,7 @@
2761
2765
  variant: props.variant,
2762
2766
  __self: undefined,
2763
2767
  __source: {
2764
- fileName: _jsxFileName$Y,
2768
+ fileName: _jsxFileName$_,
2765
2769
  lineNumber: 238,
2766
2770
  columnNumber: 9
2767
2771
  }
@@ -2780,7 +2784,7 @@
2780
2784
  bannerBlock,
2781
2785
  icon
2782
2786
  } = _ref,
2783
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$x);
2787
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
2784
2788
  return /*#__PURE__*/React__namespace.createElement(StyledBanner, _extends({
2785
2789
  variant: variant,
2786
2790
  hasAction: !!onClick,
@@ -2789,7 +2793,7 @@
2789
2793
  }, rest, {
2790
2794
  __self: undefined,
2791
2795
  __source: {
2792
- fileName: _jsxFileName$Y,
2796
+ fileName: _jsxFileName$_,
2793
2797
  lineNumber: 260,
2794
2798
  columnNumber: 5
2795
2799
  }
@@ -2806,7 +2810,7 @@
2806
2810
  },
2807
2811
  __self: undefined,
2808
2812
  __source: {
2809
- fileName: _jsxFileName$Y,
2813
+ fileName: _jsxFileName$_,
2810
2814
  lineNumber: 262,
2811
2815
  columnNumber: 9
2812
2816
  }
@@ -2817,7 +2821,7 @@
2817
2821
  },
2818
2822
  __self: undefined,
2819
2823
  __source: {
2820
- fileName: _jsxFileName$Y,
2824
+ fileName: _jsxFileName$_,
2821
2825
  lineNumber: 269,
2822
2826
  columnNumber: 11
2823
2827
  }
@@ -2832,7 +2836,7 @@
2832
2836
  onRemove: onRemove,
2833
2837
  __self: undefined,
2834
2838
  __source: {
2835
- fileName: _jsxFileName$Y,
2839
+ fileName: _jsxFileName$_,
2836
2840
  lineNumber: 272,
2837
2841
  columnNumber: 9
2838
2842
  }
@@ -3438,8 +3442,8 @@
3438
3442
  Card.Label = StyledLabel$2;
3439
3443
  Card.Description = StyledDescription$3;
3440
3444
 
3441
- const _excluded$w = ["children"];
3442
- var _jsxFileName$X = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
3445
+ const _excluded$y = ["children"];
3446
+ var _jsxFileName$Z = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/breadcrumb/Breadcrumb.js";
3443
3447
  const BreadcrumbStyle = styled('nav', {
3444
3448
  wordWrap: 'break-word',
3445
3449
  '& li+li:before': {
@@ -3484,7 +3488,7 @@
3484
3488
  return /*#__PURE__*/React__default["default"].createElement(BreadcrumbLinkStyle, _extends({}, props, aria, {
3485
3489
  __self: undefined,
3486
3490
  __source: {
3487
- fileName: _jsxFileName$X,
3491
+ fileName: _jsxFileName$Z,
3488
3492
  lineNumber: 42,
3489
3493
  columnNumber: 10
3490
3494
  }
@@ -3494,19 +3498,19 @@
3494
3498
  let {
3495
3499
  children
3496
3500
  } = _ref,
3497
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$w);
3501
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
3498
3502
  return /*#__PURE__*/React__default["default"].createElement(BreadcrumbStyle, _extends({}, rest, {
3499
3503
  "aria-label": "breadcrumb",
3500
3504
  __self: undefined,
3501
3505
  __source: {
3502
- fileName: _jsxFileName$X,
3506
+ fileName: _jsxFileName$Z,
3503
3507
  lineNumber: 47,
3504
3508
  columnNumber: 5
3505
3509
  }
3506
3510
  }), /*#__PURE__*/React__default["default"].createElement(Ol, {
3507
3511
  __self: undefined,
3508
3512
  __source: {
3509
- fileName: _jsxFileName$X,
3513
+ fileName: _jsxFileName$Z,
3510
3514
  lineNumber: 48,
3511
3515
  columnNumber: 7
3512
3516
  }
@@ -3756,8 +3760,8 @@
3756
3760
  };
3757
3761
  Badge.displayName = 'Badge';
3758
3762
 
3759
- const _excluded$v = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3760
- var _jsxFileName$W = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/avatar/Avatar.js";
3763
+ const _excluded$x = ["className", "img", "children", "onLoadingStatusChange", "delayMs", "onClick", "css"];
3764
+ var _jsxFileName$Y = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/avatar/Avatar.js";
3761
3765
  const StyledAvatar = styled(AvatarPrimitive__namespace.Root, {
3762
3766
  width: '32px',
3763
3767
  height: '32px',
@@ -3801,7 +3805,7 @@
3801
3805
  onClick,
3802
3806
  css
3803
3807
  } = _ref,
3804
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
3808
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
3805
3809
  return /*#__PURE__*/React__default["default"].createElement(StyledAvatar, _extends({
3806
3810
  className: className,
3807
3811
  onClick: onClick,
@@ -3809,7 +3813,7 @@
3809
3813
  }, props, {
3810
3814
  __self: this,
3811
3815
  __source: {
3812
- fileName: _jsxFileName$W,
3816
+ fileName: _jsxFileName$Y,
3813
3817
  lineNumber: 46,
3814
3818
  columnNumber: 5
3815
3819
  }
@@ -3819,7 +3823,7 @@
3819
3823
  onLoadingStatusChange: onLoadingStatusChange,
3820
3824
  __self: this,
3821
3825
  __source: {
3822
- fileName: _jsxFileName$W,
3826
+ fileName: _jsxFileName$Y,
3823
3827
  lineNumber: 47,
3824
3828
  columnNumber: 21
3825
3829
  }
@@ -3827,21 +3831,21 @@
3827
3831
  delayMs: delayMs,
3828
3832
  __self: this,
3829
3833
  __source: {
3830
- fileName: _jsxFileName$W,
3834
+ fileName: _jsxFileName$Y,
3831
3835
  lineNumber: 48,
3832
3836
  columnNumber: 7
3833
3837
  }
3834
3838
  }, children !== undefined ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, children) : /*#__PURE__*/React__default["default"].createElement(StyledIcon, {
3835
3839
  __self: this,
3836
3840
  __source: {
3837
- fileName: _jsxFileName$W,
3841
+ fileName: _jsxFileName$Y,
3838
3842
  lineNumber: 52,
3839
3843
  columnNumber: 11
3840
3844
  }
3841
3845
  }, /*#__PURE__*/React__default["default"].createElement(icons.UserFilled, {
3842
3846
  __self: this,
3843
3847
  __source: {
3844
- fileName: _jsxFileName$W,
3848
+ fileName: _jsxFileName$Y,
3845
3849
  lineNumber: 53,
3846
3850
  columnNumber: 13
3847
3851
  }
@@ -3858,8 +3862,8 @@
3858
3862
  delayMs: 0
3859
3863
  };
3860
3864
 
3861
- const _excluded$u = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3862
- var _jsxFileName$V = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/image/Image.js";
3865
+ const _excluded$w = ["className", "src", "alt", "width", "height", "objectFit", "fallback", "fallbackTitle", "css", "cssFallback", "rounded"];
3866
+ var _jsxFileName$X = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/image/Image.js";
3863
3867
  const ContainerFallback = styled(Flex$1, {
3864
3868
  boxSizing: 'border-box',
3865
3869
  border: '2px dashed #C0C4C4',
@@ -3908,7 +3912,7 @@
3908
3912
  cssFallback,
3909
3913
  rounded
3910
3914
  } = _ref,
3911
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
3915
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
3912
3916
  const {
3913
3917
  t
3914
3918
  } = reactI18next.useTranslation('translation');
@@ -3927,7 +3931,7 @@
3927
3931
  }, props, {
3928
3932
  __self: this,
3929
3933
  __source: {
3930
- fileName: _jsxFileName$V,
3934
+ fileName: _jsxFileName$X,
3931
3935
  lineNumber: 61,
3932
3936
  columnNumber: 7
3933
3937
  }
@@ -3943,14 +3947,14 @@
3943
3947
  }, cssFallback),
3944
3948
  __self: this,
3945
3949
  __source: {
3946
- fileName: _jsxFileName$V,
3950
+ fileName: _jsxFileName$X,
3947
3951
  lineNumber: 75,
3948
3952
  columnNumber: 7
3949
3953
  }
3950
3954
  }, /*#__PURE__*/React__default["default"].createElement(TextFallback, {
3951
3955
  __self: this,
3952
3956
  __source: {
3953
- fileName: _jsxFileName$V,
3957
+ fileName: _jsxFileName$X,
3954
3958
  lineNumber: 76,
3955
3959
  columnNumber: 9
3956
3960
  }
@@ -4008,337 +4012,6 @@
4008
4012
  fallbackTitle: 'Tidak ada foto'
4009
4013
  };
4010
4014
 
4011
- var zIndices$2 = core.foundations.zIndices;
4012
- var slideUpAndFade$2 = keyframes({
4013
- '0%': {
4014
- opacity: 0,
4015
- transform: 'translateY(2px)'
4016
- },
4017
- '100%': {
4018
- opacity: 1,
4019
- transform: 'translateY(0)'
4020
- }
4021
- });
4022
- var slideRightAndFade$2 = keyframes({
4023
- '0%': {
4024
- opacity: 0,
4025
- transform: 'translateX(-2px)'
4026
- },
4027
- '100%': {
4028
- opacity: 1,
4029
- transform: 'translateX(0)'
4030
- }
4031
- });
4032
- var slideDownAndFade$2 = keyframes({
4033
- '0%': {
4034
- opacity: 0,
4035
- transform: 'translateY(-2px)'
4036
- },
4037
- '100%': {
4038
- opacity: 1,
4039
- transform: 'translateY(0)'
4040
- }
4041
- });
4042
- var slideLeftAndFade$2 = keyframes({
4043
- '0%': {
4044
- opacity: 0,
4045
- transform: 'translateX(2px)'
4046
- },
4047
- '100%': {
4048
- opacity: 1,
4049
- transform: 'translateX(0)'
4050
- }
4051
- });
4052
- var StyledContent$6 = styled(TooltipPrimitive__namespace.Content, {
4053
- zIndex: zIndices$2.tooltip,
4054
- borderRadius: 8,
4055
- padding: '8px',
4056
- fontSize: '$helper',
4057
- letterSpacing: '$helper',
4058
- lineHeight: '$helper',
4059
- fontWeight: '400',
4060
- backgroundColor: '$white',
4061
- boxShadow: '$large',
4062
- '@media (prefers-reduced-motion: no-preference)': {
4063
- animationDuration: '400ms',
4064
- animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
4065
- animationFillMode: 'forwards',
4066
- willChange: 'transform, opacity',
4067
- '&[data-state="delayed-open"]': {
4068
- '&[data-side="top"]': {
4069
- animationName: slideDownAndFade$2
4070
- },
4071
- '&[data-side="right"]': {
4072
- animationName: slideLeftAndFade$2
4073
- },
4074
- '&[data-side="bottom"]': {
4075
- animationName: slideUpAndFade$2
4076
- },
4077
- '&[data-side="left"]': {
4078
- animationName: slideRightAndFade$2
4079
- }
4080
- }
4081
- }
4082
- });
4083
- var TriggerSpan = styled('span', {
4084
- display: 'flex'
4085
- });
4086
- var StyledArrow$1 = styled(TooltipPrimitive__namespace.Arrow, {
4087
- boxShadow: '$large'
4088
- });
4089
- var TooltipBase = styled(TooltipPrimitive__namespace.Root, {
4090
- defaultVariants: {
4091
- color: 'ligth'
4092
- }
4093
- });
4094
- // Exports
4095
- var Provider = TooltipPrimitive__namespace.Provider;
4096
- var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
4097
- var TooltipContent = StyledContent$6;
4098
- var dark = {
4099
- color: core.foundations.colors.white,
4100
- backgroundColor: core.foundations.colors.gray800
4101
- };
4102
- var ligth = {
4103
- color: core.foundations.colors.textPrimary,
4104
- backgroundColor: core.foundations.colors.bgWhite
4105
- };
4106
- var darkArrow = {
4107
- fill: core.foundations.colors.gray800
4108
- };
4109
- var lightArrow = {
4110
- fill: core.foundations.colors.bgWhite
4111
- };
4112
- var Tooltip$1 = function Tooltip(_a) {
4113
- var children = _a.children,
4114
- label = _a.label,
4115
- color = _a.color,
4116
- css = _a.css,
4117
- withClick = _a.withClick,
4118
- side = _a.side,
4119
- align = _a.align,
4120
- delayDuration = _a.delayDuration,
4121
- rest = __rest(_a, ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"]);
4122
- var _b = React.useState(false),
4123
- open = _b[0],
4124
- setOpen = _b[1];
4125
- return jsxRuntime.jsx(Provider, {
4126
- children: jsxRuntime.jsxs(TooltipBase, __assign({}, rest, {
4127
- open: withClick ? open : undefined,
4128
- delayDuration: delayDuration
4129
- }, {
4130
- children: [jsxRuntime.jsx(TooltipTrigger, __assign({
4131
- asChild: true
4132
- }, {
4133
- children: jsxRuntime.jsx(TriggerSpan, __assign({
4134
- onClick: function () {
4135
- return withClick && !open && setOpen(true);
4136
- }
4137
- }, {
4138
- children: children
4139
- }), void 0)
4140
- }), void 0), jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, {
4141
- children: jsxRuntime.jsxs(StyledContent$6, __assign({
4142
- align: align,
4143
- side: side,
4144
- sideOffset: 5,
4145
- css: color === 'dark' ? __assign(__assign({}, dark), css) : __assign(__assign({}, ligth), css),
4146
- onPointerDownOutside: function () {
4147
- return setTimeout(function () {
4148
- setOpen(false);
4149
- }, 100);
4150
- }
4151
- }, {
4152
- children: [label, jsxRuntime.jsx(StyledArrow$1, {
4153
- offset: 10,
4154
- css: color === 'dark' ? darkArrow : lightArrow
4155
- }, void 0)]
4156
- }), void 0)
4157
- }, void 0)]
4158
- }), void 0)
4159
- }, void 0);
4160
- };
4161
- Tooltip$1.defaultProps = {
4162
- color: 'dark',
4163
- side: 'bottom',
4164
- align: 'center',
4165
- label: '',
4166
- children: jsxRuntime.jsx("div", {}, void 0),
4167
- delayDuration: 200
4168
- };
4169
-
4170
- const _excluded$t = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4171
- var _jsxFileName$U = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/progress/Progress.js";
4172
- const StyledProgress$1 = react.styled(ProgressPrimitive__namespace.Root, {
4173
- position: 'relative',
4174
- overflow: 'hidden',
4175
- background: '$chartLightGreen',
4176
- width: 'auto',
4177
- height: '12px',
4178
- variants: {
4179
- rounded: {
4180
- true: {
4181
- borderRadius: '100px'
4182
- }
4183
- },
4184
- color: {
4185
- green: {
4186
- backgroundColor: '$chartLightGreen'
4187
- },
4188
- orange: {
4189
- backgroundColor: '$chartLightOrange'
4190
- },
4191
- blue: {
4192
- backgroundColor: '$chartLightBlue'
4193
- },
4194
- purple: {
4195
- backgroundColor: '$chartLightPurple'
4196
- },
4197
- yellow: {
4198
- backgroundColor: '$chartLightYellow'
4199
- },
4200
- red: {
4201
- backgroundColor: '$chartLightRed'
4202
- },
4203
- dark: {
4204
- backgroundColor: '$chartLightGray'
4205
- }
4206
- },
4207
- size: {
4208
- xs: {
4209
- height: '4px'
4210
- },
4211
- sm: {
4212
- height: '8px'
4213
- },
4214
- m: {
4215
- height: '12px'
4216
- },
4217
- l: {
4218
- height: '16px'
4219
- },
4220
- xl: {
4221
- height: '20px'
4222
- }
4223
- }
4224
- }
4225
- });
4226
- const StyledIndicator$3 = react.styled(ProgressPrimitive__namespace.Indicator, {
4227
- backgroundColor: '$chartGreen',
4228
- height: '60%',
4229
- transition: 'width 660ms cubic-bezier(0.65, 0, 0.35, 1)',
4230
- variants: {
4231
- rounded: {
4232
- true: {
4233
- borderRadius: '100px'
4234
- }
4235
- },
4236
- color: {
4237
- green: {
4238
- backgroundColor: '$chartGreen'
4239
- },
4240
- orange: {
4241
- backgroundColor: '$chartOrange'
4242
- },
4243
- blue: {
4244
- backgroundColor: '$chartBlue'
4245
- },
4246
- purple: {
4247
- backgroundColor: '$chartPurple'
4248
- },
4249
- yellow: {
4250
- backgroundColor: '$chartYellow'
4251
- },
4252
- red: {
4253
- backgroundColor: '$chartRed'
4254
- },
4255
- dark: {
4256
- backgroundColor: '$chartDark'
4257
- }
4258
- },
4259
- size: {
4260
- xs: {
4261
- height: '100%'
4262
- },
4263
- sm: {
4264
- height: '100%'
4265
- },
4266
- m: {
4267
- margin: "2px 2px 0"
4268
- },
4269
- l: {
4270
- margin: "3px 3px 0"
4271
- },
4272
- xl: {
4273
- margin: "4px 4px 0"
4274
- }
4275
- }
4276
- }
4277
- });
4278
- function Progress$1(_ref) {
4279
- let {
4280
- className,
4281
- value,
4282
- max,
4283
- getValueLabel,
4284
- color,
4285
- size,
4286
- rounded,
4287
- width
4288
- } = _ref,
4289
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
4290
- return /*#__PURE__*/React__default["default"].createElement(StyledProgress$1, _extends({
4291
- className: className,
4292
- value: value,
4293
- max: max,
4294
- getValueLabel: getValueLabel,
4295
- color: color,
4296
- size: size,
4297
- rounded: rounded,
4298
- css: Object.assign({
4299
- width: width
4300
- }, props.css)
4301
- }, props, {
4302
- __self: this,
4303
- __source: {
4304
- fileName: _jsxFileName$U,
4305
- lineNumber: 88,
4306
- columnNumber: 5
4307
- }
4308
- }), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$3, {
4309
- color: color,
4310
- size: size,
4311
- rounded: rounded,
4312
- css: {
4313
- width: `${value}%`
4314
- },
4315
- __self: this,
4316
- __source: {
4317
- fileName: _jsxFileName$U,
4318
- lineNumber: 89,
4319
- columnNumber: 7
4320
- }
4321
- }));
4322
- }
4323
- Progress$1.propTypes = {
4324
- className: PropTypes__default["default"].string,
4325
- value: PropTypes__default["default"].number,
4326
- max: PropTypes__default["default"].number,
4327
- getValueLabel: PropTypes__default["default"].func,
4328
- color: PropTypes__default["default"].string,
4329
- size: PropTypes__default["default"].string,
4330
- rounded: PropTypes__default["default"].bool,
4331
- width: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
4332
- };
4333
- Progress$1.defaultProps = {
4334
- max: 100,
4335
- color: 'green',
4336
- size: 'm',
4337
- rounded: true
4338
- };
4339
-
4340
- const ToastContext = /*#__PURE__*/React__namespace.createContext({});
4341
-
4342
4015
  var objectDefineProperties = {};
4343
4016
 
4344
4017
  var DESCRIPTORS$8 = descriptors;
@@ -4801,6 +4474,464 @@
4801
4474
  defineProperty$1(values, 'name', { value: 'values' });
4802
4475
  } catch (error) { /* empty */ }
4803
4476
 
4477
+ // iterable DOM collections
4478
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
4479
+ var domIterables = {
4480
+ CSSRuleList: 0,
4481
+ CSSStyleDeclaration: 0,
4482
+ CSSValueList: 0,
4483
+ ClientRectList: 0,
4484
+ DOMRectList: 0,
4485
+ DOMStringList: 0,
4486
+ DOMTokenList: 1,
4487
+ DataTransferItemList: 0,
4488
+ FileList: 0,
4489
+ HTMLAllCollection: 0,
4490
+ HTMLCollection: 0,
4491
+ HTMLFormElement: 0,
4492
+ HTMLSelectElement: 0,
4493
+ MediaList: 0,
4494
+ MimeTypeArray: 0,
4495
+ NamedNodeMap: 0,
4496
+ NodeList: 1,
4497
+ PaintRequestList: 0,
4498
+ Plugin: 0,
4499
+ PluginArray: 0,
4500
+ SVGLengthList: 0,
4501
+ SVGNumberList: 0,
4502
+ SVGPathSegList: 0,
4503
+ SVGPointList: 0,
4504
+ SVGStringList: 0,
4505
+ SVGTransformList: 0,
4506
+ SourceBufferList: 0,
4507
+ StyleSheetList: 0,
4508
+ TextTrackCueList: 0,
4509
+ TextTrackList: 0,
4510
+ TouchList: 0
4511
+ };
4512
+
4513
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
4514
+ var documentCreateElement = documentCreateElement$2;
4515
+
4516
+ var classList = documentCreateElement('span').classList;
4517
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
4518
+
4519
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
4520
+
4521
+ var global$g = global$r;
4522
+ var DOMIterables = domIterables;
4523
+ var DOMTokenListPrototype = domTokenListPrototype;
4524
+ var ArrayIteratorMethods = es_array_iterator;
4525
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
4526
+ var setToStringTag$3 = setToStringTag$6;
4527
+ var wellKnownSymbol$d = wellKnownSymbol$l;
4528
+
4529
+ var ITERATOR$7 = wellKnownSymbol$d('iterator');
4530
+ var ArrayValues = ArrayIteratorMethods.values;
4531
+
4532
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
4533
+ if (CollectionPrototype) {
4534
+ // some Chrome versions have non-configurable methods on DOMTokenList
4535
+ if (CollectionPrototype[ITERATOR$7] !== ArrayValues) try {
4536
+ createNonEnumerableProperty$2(CollectionPrototype, ITERATOR$7, ArrayValues);
4537
+ } catch (error) {
4538
+ CollectionPrototype[ITERATOR$7] = ArrayValues;
4539
+ }
4540
+ setToStringTag$3(CollectionPrototype, COLLECTION_NAME, true);
4541
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
4542
+ // some Chrome versions have non-configurable methods on DOMTokenList
4543
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
4544
+ createNonEnumerableProperty$2(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
4545
+ } catch (error) {
4546
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
4547
+ }
4548
+ }
4549
+ }
4550
+ };
4551
+
4552
+ for (var COLLECTION_NAME in DOMIterables) {
4553
+ handlePrototype(global$g[COLLECTION_NAME] && global$g[COLLECTION_NAME].prototype, COLLECTION_NAME);
4554
+ }
4555
+
4556
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
4557
+
4558
+ const _excluded$v = ["children", "label", "color", "css", "withClick", "side", "align", "delayDuration"];
4559
+ var _jsxFileName$W = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tooltip/Tooltip.js";
4560
+ const {
4561
+ zIndices: zIndices$2
4562
+ } = core.foundations;
4563
+ const slideUpAndFade$2 = keyframes({
4564
+ '0%': {
4565
+ opacity: 0,
4566
+ transform: 'translateY(2px)'
4567
+ },
4568
+ '100%': {
4569
+ opacity: 1,
4570
+ transform: 'translateY(0)'
4571
+ }
4572
+ });
4573
+ const slideRightAndFade$2 = keyframes({
4574
+ '0%': {
4575
+ opacity: 0,
4576
+ transform: 'translateX(-2px)'
4577
+ },
4578
+ '100%': {
4579
+ opacity: 1,
4580
+ transform: 'translateX(0)'
4581
+ }
4582
+ });
4583
+ const slideDownAndFade$2 = keyframes({
4584
+ '0%': {
4585
+ opacity: 0,
4586
+ transform: 'translateY(-2px)'
4587
+ },
4588
+ '100%': {
4589
+ opacity: 1,
4590
+ transform: 'translateY(0)'
4591
+ }
4592
+ });
4593
+ const slideLeftAndFade$2 = keyframes({
4594
+ '0%': {
4595
+ opacity: 0,
4596
+ transform: 'translateX(2px)'
4597
+ },
4598
+ '100%': {
4599
+ opacity: 1,
4600
+ transform: 'translateX(0)'
4601
+ }
4602
+ });
4603
+ const StyledContent$6 = styled(TooltipPrimitive__namespace.Content, {
4604
+ zIndex: zIndices$2.tooltip,
4605
+ borderRadius: 8,
4606
+ padding: '8px',
4607
+ fontSize: '$helper',
4608
+ letterSpacing: '$helper',
4609
+ lineHeight: '$helper',
4610
+ fontWeight: '400',
4611
+ backgroundColor: '$white',
4612
+ boxShadow: '$large',
4613
+ '@media (prefers-reduced-motion: no-preference)': {
4614
+ animationDuration: '400ms',
4615
+ animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
4616
+ animationFillMode: 'forwards',
4617
+ willChange: 'transform, opacity',
4618
+ '&[data-state="delayed-open"]': {
4619
+ '&[data-side="top"]': {
4620
+ animationName: slideDownAndFade$2
4621
+ },
4622
+ '&[data-side="right"]': {
4623
+ animationName: slideLeftAndFade$2
4624
+ },
4625
+ '&[data-side="bottom"]': {
4626
+ animationName: slideUpAndFade$2
4627
+ },
4628
+ '&[data-side="left"]': {
4629
+ animationName: slideRightAndFade$2
4630
+ }
4631
+ }
4632
+ }
4633
+ });
4634
+ const TriggerSpan = styled('span', {
4635
+ display: 'flex'
4636
+ });
4637
+ const StyledArrow$1 = styled(TooltipPrimitive__namespace.Arrow, {
4638
+ boxShadow: '$large'
4639
+ });
4640
+ const TooltipBase = styled(TooltipPrimitive__namespace.Root, {
4641
+ defaultVariants: {
4642
+ color: 'ligth'
4643
+ }
4644
+ });
4645
+
4646
+ // Exports
4647
+ const Provider = TooltipPrimitive__namespace.Provider;
4648
+ const TooltipTrigger = TooltipPrimitive__namespace.Trigger;
4649
+ const dark = {
4650
+ color: core.foundations.colors.white,
4651
+ backgroundColor: core.foundations.colors.gray800
4652
+ };
4653
+ const ligth = {
4654
+ color: core.foundations.colors.textPrimary,
4655
+ backgroundColor: core.foundations.colors.bgWhite
4656
+ };
4657
+ const darkArrow = {
4658
+ fill: core.foundations.colors.gray800
4659
+ };
4660
+ const lightArrow = {
4661
+ fill: core.foundations.colors.bgWhite
4662
+ };
4663
+ const Tooltip$1 = _ref => {
4664
+ let {
4665
+ children,
4666
+ label,
4667
+ color,
4668
+ css,
4669
+ withClick,
4670
+ side,
4671
+ align,
4672
+ delayDuration
4673
+ } = _ref,
4674
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4675
+ const [open, setOpen] = React.useState(false);
4676
+ return /*#__PURE__*/React__default["default"].createElement(Provider, {
4677
+ __self: undefined,
4678
+ __source: {
4679
+ fileName: _jsxFileName$W,
4680
+ lineNumber: 91,
4681
+ columnNumber: 5
4682
+ }
4683
+ }, /*#__PURE__*/React__default["default"].createElement(TooltipBase, _extends({}, rest, {
4684
+ open: withClick ? open : undefined,
4685
+ delayDuration: delayDuration,
4686
+ __self: undefined,
4687
+ __source: {
4688
+ fileName: _jsxFileName$W,
4689
+ lineNumber: 92,
4690
+ columnNumber: 7
4691
+ }
4692
+ }), /*#__PURE__*/React__default["default"].createElement(TooltipTrigger, {
4693
+ asChild: true,
4694
+ __self: undefined,
4695
+ __source: {
4696
+ fileName: _jsxFileName$W,
4697
+ lineNumber: 93,
4698
+ columnNumber: 9
4699
+ }
4700
+ }, /*#__PURE__*/React__default["default"].createElement(TriggerSpan, {
4701
+ onClick: () => withClick && !open && setOpen(true),
4702
+ __self: undefined,
4703
+ __source: {
4704
+ fileName: _jsxFileName$W,
4705
+ lineNumber: 94,
4706
+ columnNumber: 11
4707
+ }
4708
+ }, children)), /*#__PURE__*/React__default["default"].createElement(TooltipPrimitive__namespace.Portal, {
4709
+ __self: undefined,
4710
+ __source: {
4711
+ fileName: _jsxFileName$W,
4712
+ lineNumber: 96,
4713
+ columnNumber: 9
4714
+ }
4715
+ }, /*#__PURE__*/React__default["default"].createElement(StyledContent$6, {
4716
+ align: align,
4717
+ side: side,
4718
+ sideOffset: 5,
4719
+ css: color === 'dark' ? Object.assign({}, dark, css) : Object.assign({}, ligth, css),
4720
+ onPointerDownOutside: () => setTimeout(() => {
4721
+ setOpen(false);
4722
+ }, 100),
4723
+ __self: undefined,
4724
+ __source: {
4725
+ fileName: _jsxFileName$W,
4726
+ lineNumber: 97,
4727
+ columnNumber: 11
4728
+ }
4729
+ }, label, /*#__PURE__*/React__default["default"].createElement(StyledArrow$1, {
4730
+ offset: 10,
4731
+ css: color === 'dark' ? darkArrow : lightArrow,
4732
+ __self: undefined,
4733
+ __source: {
4734
+ fileName: _jsxFileName$W,
4735
+ lineNumber: 109,
4736
+ columnNumber: 13
4737
+ }
4738
+ })))));
4739
+ };
4740
+ Tooltip$1.propTypes = {
4741
+ children: PropTypes__default["default"].node,
4742
+ label: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].node]),
4743
+ color: PropTypes__default["default"].string,
4744
+ side: PropTypes__default["default"].oneOf(['top', 'bottom', 'right', 'left']),
4745
+ align: PropTypes__default["default"].oneOf(['start', 'center', 'end'])
4746
+ };
4747
+ Tooltip$1.defaultProps = {
4748
+ color: 'dark',
4749
+ side: 'bottom',
4750
+ align: 'center',
4751
+ label: '',
4752
+ children: /*#__PURE__*/React__default["default"].createElement("div", {
4753
+ __self: undefined,
4754
+ __source: {
4755
+ fileName: _jsxFileName$W,
4756
+ lineNumber: 130,
4757
+ columnNumber: 13
4758
+ }
4759
+ }),
4760
+ delayDuration: 200
4761
+ };
4762
+
4763
+ const _excluded$u = ["className", "value", "max", "getValueLabel", "color", "size", "rounded", "width"];
4764
+ var _jsxFileName$V = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/progress/Progress.js";
4765
+ const StyledProgress$1 = react.styled(ProgressPrimitive__namespace.Root, {
4766
+ position: 'relative',
4767
+ overflow: 'hidden',
4768
+ background: '$chartLightGreen',
4769
+ width: 'auto',
4770
+ height: '12px',
4771
+ variants: {
4772
+ rounded: {
4773
+ true: {
4774
+ borderRadius: '100px'
4775
+ }
4776
+ },
4777
+ color: {
4778
+ green: {
4779
+ backgroundColor: '$chartLightGreen'
4780
+ },
4781
+ orange: {
4782
+ backgroundColor: '$chartLightOrange'
4783
+ },
4784
+ blue: {
4785
+ backgroundColor: '$chartLightBlue'
4786
+ },
4787
+ purple: {
4788
+ backgroundColor: '$chartLightPurple'
4789
+ },
4790
+ yellow: {
4791
+ backgroundColor: '$chartLightYellow'
4792
+ },
4793
+ red: {
4794
+ backgroundColor: '$chartLightRed'
4795
+ },
4796
+ dark: {
4797
+ backgroundColor: '$chartLightGray'
4798
+ }
4799
+ },
4800
+ size: {
4801
+ xs: {
4802
+ height: '4px'
4803
+ },
4804
+ sm: {
4805
+ height: '8px'
4806
+ },
4807
+ m: {
4808
+ height: '12px'
4809
+ },
4810
+ l: {
4811
+ height: '16px'
4812
+ },
4813
+ xl: {
4814
+ height: '20px'
4815
+ }
4816
+ }
4817
+ }
4818
+ });
4819
+ const StyledIndicator$3 = react.styled(ProgressPrimitive__namespace.Indicator, {
4820
+ backgroundColor: '$chartGreen',
4821
+ height: '60%',
4822
+ transition: 'width 660ms cubic-bezier(0.65, 0, 0.35, 1)',
4823
+ variants: {
4824
+ rounded: {
4825
+ true: {
4826
+ borderRadius: '100px'
4827
+ }
4828
+ },
4829
+ color: {
4830
+ green: {
4831
+ backgroundColor: '$chartGreen'
4832
+ },
4833
+ orange: {
4834
+ backgroundColor: '$chartOrange'
4835
+ },
4836
+ blue: {
4837
+ backgroundColor: '$chartBlue'
4838
+ },
4839
+ purple: {
4840
+ backgroundColor: '$chartPurple'
4841
+ },
4842
+ yellow: {
4843
+ backgroundColor: '$chartYellow'
4844
+ },
4845
+ red: {
4846
+ backgroundColor: '$chartRed'
4847
+ },
4848
+ dark: {
4849
+ backgroundColor: '$chartDark'
4850
+ }
4851
+ },
4852
+ size: {
4853
+ xs: {
4854
+ height: '100%'
4855
+ },
4856
+ sm: {
4857
+ height: '100%'
4858
+ },
4859
+ m: {
4860
+ margin: "2px 2px 0"
4861
+ },
4862
+ l: {
4863
+ margin: "3px 3px 0"
4864
+ },
4865
+ xl: {
4866
+ margin: "4px 4px 0"
4867
+ }
4868
+ }
4869
+ }
4870
+ });
4871
+ function Progress$1(_ref) {
4872
+ let {
4873
+ className,
4874
+ value,
4875
+ max,
4876
+ getValueLabel,
4877
+ color,
4878
+ size,
4879
+ rounded,
4880
+ width
4881
+ } = _ref,
4882
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4883
+ return /*#__PURE__*/React__default["default"].createElement(StyledProgress$1, _extends({
4884
+ className: className,
4885
+ value: value,
4886
+ max: max,
4887
+ getValueLabel: getValueLabel,
4888
+ color: color,
4889
+ size: size,
4890
+ rounded: rounded,
4891
+ css: Object.assign({
4892
+ width: width
4893
+ }, props.css)
4894
+ }, props, {
4895
+ __self: this,
4896
+ __source: {
4897
+ fileName: _jsxFileName$V,
4898
+ lineNumber: 88,
4899
+ columnNumber: 5
4900
+ }
4901
+ }), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$3, {
4902
+ color: color,
4903
+ size: size,
4904
+ rounded: rounded,
4905
+ css: {
4906
+ width: `${value}%`
4907
+ },
4908
+ __self: this,
4909
+ __source: {
4910
+ fileName: _jsxFileName$V,
4911
+ lineNumber: 89,
4912
+ columnNumber: 7
4913
+ }
4914
+ }));
4915
+ }
4916
+ Progress$1.propTypes = {
4917
+ className: PropTypes__default["default"].string,
4918
+ value: PropTypes__default["default"].number,
4919
+ max: PropTypes__default["default"].number,
4920
+ getValueLabel: PropTypes__default["default"].func,
4921
+ color: PropTypes__default["default"].string,
4922
+ size: PropTypes__default["default"].string,
4923
+ rounded: PropTypes__default["default"].bool,
4924
+ width: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
4925
+ };
4926
+ Progress$1.defaultProps = {
4927
+ max: 100,
4928
+ color: 'green',
4929
+ size: 'm',
4930
+ rounded: true
4931
+ };
4932
+
4933
+ const ToastContext = /*#__PURE__*/React__namespace.createContext({});
4934
+
4804
4935
  var anObject$d = anObject$i;
4805
4936
 
4806
4937
  // `RegExp.prototype.flags` getter implementation
@@ -4820,10 +4951,10 @@
4820
4951
  };
4821
4952
 
4822
4953
  var fails$h = fails$t;
4823
- var global$g = global$r;
4954
+ var global$f = global$r;
4824
4955
 
4825
4956
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
4826
- var $RegExp$2 = global$g.RegExp;
4957
+ var $RegExp$2 = global$f.RegExp;
4827
4958
 
4828
4959
  var UNSUPPORTED_Y$3 = fails$h(function () {
4829
4960
  var re = $RegExp$2('a', 'y');
@@ -4851,10 +4982,10 @@
4851
4982
  };
4852
4983
 
4853
4984
  var fails$g = fails$t;
4854
- var global$f = global$r;
4985
+ var global$e = global$r;
4855
4986
 
4856
4987
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
4857
- var $RegExp$1 = global$f.RegExp;
4988
+ var $RegExp$1 = global$e.RegExp;
4858
4989
 
4859
4990
  var regexpUnsupportedDotAll = fails$g(function () {
4860
4991
  var re = $RegExp$1('.', 's');
@@ -4862,10 +4993,10 @@
4862
4993
  });
4863
4994
 
4864
4995
  var fails$f = fails$t;
4865
- var global$e = global$r;
4996
+ var global$d = global$r;
4866
4997
 
4867
4998
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
4868
- var $RegExp = global$e.RegExp;
4999
+ var $RegExp = global$d.RegExp;
4869
5000
 
4870
5001
  var regexpUnsupportedNcg = fails$f(function () {
4871
5002
  var re = $RegExp('(?<a>b)', 'g');
@@ -5016,14 +5147,14 @@
5016
5147
  var defineBuiltIn$7 = defineBuiltIn$b;
5017
5148
  var regexpExec$1 = regexpExec$2;
5018
5149
  var fails$e = fails$t;
5019
- var wellKnownSymbol$d = wellKnownSymbol$l;
5020
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
5150
+ var wellKnownSymbol$c = wellKnownSymbol$l;
5151
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
5021
5152
 
5022
- var SPECIES$3 = wellKnownSymbol$d('species');
5153
+ var SPECIES$3 = wellKnownSymbol$c('species');
5023
5154
  var RegExpPrototype$3 = RegExp.prototype;
5024
5155
 
5025
5156
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
5026
- var SYMBOL = wellKnownSymbol$d(KEY);
5157
+ var SYMBOL = wellKnownSymbol$c(KEY);
5027
5158
 
5028
5159
  var DELEGATES_TO_SYMBOL = !fails$e(function () {
5029
5160
  // String methods call symbol-named RegExp methods
@@ -5083,7 +5214,7 @@
5083
5214
  defineBuiltIn$7(RegExpPrototype$3, SYMBOL, methods[1]);
5084
5215
  }
5085
5216
 
5086
- if (SHAM) createNonEnumerableProperty$2(RegExpPrototype$3[SYMBOL], 'sham', true);
5217
+ if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$3[SYMBOL], 'sham', true);
5087
5218
  };
5088
5219
 
5089
5220
  var uncurryThis$l = functionUncurryThis;
@@ -5214,9 +5345,9 @@
5214
5345
  var getMethod$5 = getMethod$7;
5215
5346
  var getSubstitution = getSubstitution$1;
5216
5347
  var regExpExec$3 = regexpExecAbstract;
5217
- var wellKnownSymbol$c = wellKnownSymbol$l;
5348
+ var wellKnownSymbol$b = wellKnownSymbol$l;
5218
5349
 
5219
- var REPLACE = wellKnownSymbol$c('replace');
5350
+ var REPLACE = wellKnownSymbol$b('replace');
5220
5351
  var max = Math.max;
5221
5352
  var min$3 = Math.min;
5222
5353
  var concat = uncurryThis$j([].concat);
@@ -5340,87 +5471,6 @@
5340
5471
  ];
5341
5472
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
5342
5473
 
5343
- // iterable DOM collections
5344
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
5345
- var domIterables = {
5346
- CSSRuleList: 0,
5347
- CSSStyleDeclaration: 0,
5348
- CSSValueList: 0,
5349
- ClientRectList: 0,
5350
- DOMRectList: 0,
5351
- DOMStringList: 0,
5352
- DOMTokenList: 1,
5353
- DataTransferItemList: 0,
5354
- FileList: 0,
5355
- HTMLAllCollection: 0,
5356
- HTMLCollection: 0,
5357
- HTMLFormElement: 0,
5358
- HTMLSelectElement: 0,
5359
- MediaList: 0,
5360
- MimeTypeArray: 0,
5361
- NamedNodeMap: 0,
5362
- NodeList: 1,
5363
- PaintRequestList: 0,
5364
- Plugin: 0,
5365
- PluginArray: 0,
5366
- SVGLengthList: 0,
5367
- SVGNumberList: 0,
5368
- SVGPathSegList: 0,
5369
- SVGPointList: 0,
5370
- SVGStringList: 0,
5371
- SVGTransformList: 0,
5372
- SourceBufferList: 0,
5373
- StyleSheetList: 0,
5374
- TextTrackCueList: 0,
5375
- TextTrackList: 0,
5376
- TouchList: 0
5377
- };
5378
-
5379
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
5380
- var documentCreateElement = documentCreateElement$2;
5381
-
5382
- var classList = documentCreateElement('span').classList;
5383
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
5384
-
5385
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
5386
-
5387
- var global$d = global$r;
5388
- var DOMIterables = domIterables;
5389
- var DOMTokenListPrototype = domTokenListPrototype;
5390
- var ArrayIteratorMethods = es_array_iterator;
5391
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
5392
- var setToStringTag$3 = setToStringTag$6;
5393
- var wellKnownSymbol$b = wellKnownSymbol$l;
5394
-
5395
- var ITERATOR$7 = wellKnownSymbol$b('iterator');
5396
- var ArrayValues = ArrayIteratorMethods.values;
5397
-
5398
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
5399
- if (CollectionPrototype) {
5400
- // some Chrome versions have non-configurable methods on DOMTokenList
5401
- if (CollectionPrototype[ITERATOR$7] !== ArrayValues) try {
5402
- createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$7, ArrayValues);
5403
- } catch (error) {
5404
- CollectionPrototype[ITERATOR$7] = ArrayValues;
5405
- }
5406
- setToStringTag$3(CollectionPrototype, COLLECTION_NAME, true);
5407
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
5408
- // some Chrome versions have non-configurable methods on DOMTokenList
5409
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
5410
- createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
5411
- } catch (error) {
5412
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
5413
- }
5414
- }
5415
- }
5416
- };
5417
-
5418
- for (var COLLECTION_NAME in DOMIterables) {
5419
- handlePrototype(global$d[COLLECTION_NAME] && global$d[COLLECTION_NAME].prototype, COLLECTION_NAME);
5420
- }
5421
-
5422
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
5423
-
5424
5474
  var $$k = _export;
5425
5475
  var $includes = arrayIncludes.includes;
5426
5476
  var fails$c = fails$t;
@@ -5519,8 +5569,8 @@
5519
5569
  return matches;
5520
5570
  }
5521
5571
 
5522
- const _excluded$s = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5523
- var _jsxFileName$T = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/Toast.js";
5572
+ const _excluded$t = ["id", "title", "description", "position", "dismissAfter", "variant", "onClick", "onRemove", "isExternalOfAction", "onClickOfAction", "captionOfAction", "hrefOfAction"];
5573
+ var _jsxFileName$U = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/Toast.js";
5524
5574
  const TOAST_WIDTH = 576;
5525
5575
  const ANIMATION_DURATION = 400;
5526
5576
  const TOP_RIGHT_POSITION = 'top-right';
@@ -5688,7 +5738,7 @@
5688
5738
  captionOfAction,
5689
5739
  hrefOfAction
5690
5740
  } = _ref,
5691
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
5741
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
5692
5742
  const [isOpen, setIsOpen] = React__namespace.useState(false);
5693
5743
  const isMobile = useMediaQuery(`(max-width: 767px`);
5694
5744
  const close = React__namespace.useCallback(() => {
@@ -5717,7 +5767,7 @@
5717
5767
  onExited: onRemove,
5718
5768
  __self: undefined,
5719
5769
  __source: {
5720
- fileName: _jsxFileName$T,
5770
+ fileName: _jsxFileName$U,
5721
5771
  lineNumber: 216,
5722
5772
  columnNumber: 5
5723
5773
  }
@@ -5732,7 +5782,7 @@
5732
5782
  }, rest, {
5733
5783
  __self: undefined,
5734
5784
  __source: {
5735
- fileName: _jsxFileName$T,
5785
+ fileName: _jsxFileName$U,
5736
5786
  lineNumber: 227,
5737
5787
  columnNumber: 9
5738
5788
  }
@@ -5742,7 +5792,7 @@
5742
5792
  onClick: onClick,
5743
5793
  __self: undefined,
5744
5794
  __source: {
5745
- fileName: _jsxFileName$T,
5795
+ fileName: _jsxFileName$U,
5746
5796
  lineNumber: 235,
5747
5797
  columnNumber: 11
5748
5798
  }
@@ -5750,7 +5800,7 @@
5750
5800
  direction: "column",
5751
5801
  __self: undefined,
5752
5802
  __source: {
5753
- fileName: _jsxFileName$T,
5803
+ fileName: _jsxFileName$U,
5754
5804
  lineNumber: 236,
5755
5805
  columnNumber: 13
5756
5806
  }
@@ -5758,7 +5808,7 @@
5758
5808
  direction: "row",
5759
5809
  __self: undefined,
5760
5810
  __source: {
5761
- fileName: _jsxFileName$T,
5811
+ fileName: _jsxFileName$U,
5762
5812
  lineNumber: 237,
5763
5813
  columnNumber: 15
5764
5814
  }
@@ -5766,7 +5816,7 @@
5766
5816
  variant: variant,
5767
5817
  __self: undefined,
5768
5818
  __source: {
5769
- fileName: _jsxFileName$T,
5819
+ fileName: _jsxFileName$U,
5770
5820
  lineNumber: 238,
5771
5821
  columnNumber: 17
5772
5822
  }
@@ -5778,7 +5828,7 @@
5778
5828
  },
5779
5829
  __self: undefined,
5780
5830
  __source: {
5781
- fileName: _jsxFileName$T,
5831
+ fileName: _jsxFileName$U,
5782
5832
  lineNumber: 239,
5783
5833
  columnNumber: 17
5784
5834
  }
@@ -5786,7 +5836,7 @@
5786
5836
  justify: "between",
5787
5837
  __self: undefined,
5788
5838
  __source: {
5789
- fileName: _jsxFileName$T,
5839
+ fileName: _jsxFileName$U,
5790
5840
  lineNumber: 247,
5791
5841
  columnNumber: 21
5792
5842
  }
@@ -5801,7 +5851,7 @@
5801
5851
  },
5802
5852
  __self: undefined,
5803
5853
  __source: {
5804
- fileName: _jsxFileName$T,
5854
+ fileName: _jsxFileName$U,
5805
5855
  lineNumber: 248,
5806
5856
  columnNumber: 23
5807
5857
  }
@@ -5810,7 +5860,7 @@
5810
5860
  color: "secondary",
5811
5861
  __self: undefined,
5812
5862
  __source: {
5813
- fileName: _jsxFileName$T,
5863
+ fileName: _jsxFileName$U,
5814
5864
  lineNumber: 262,
5815
5865
  columnNumber: 19
5816
5866
  }
@@ -5825,7 +5875,7 @@
5825
5875
  hasTitle: !!title,
5826
5876
  __self: undefined,
5827
5877
  __source: {
5828
- fileName: _jsxFileName$T,
5878
+ fileName: _jsxFileName$U,
5829
5879
  lineNumber: 266,
5830
5880
  columnNumber: 17
5831
5881
  }
@@ -5834,7 +5884,7 @@
5834
5884
  size: "16px",
5835
5885
  __self: undefined,
5836
5886
  __source: {
5837
- fileName: _jsxFileName$T,
5887
+ fileName: _jsxFileName$U,
5838
5888
  lineNumber: 276,
5839
5889
  columnNumber: 19
5840
5890
  }
@@ -5849,7 +5899,7 @@
5849
5899
  },
5850
5900
  __self: undefined,
5851
5901
  __source: {
5852
- fileName: _jsxFileName$T,
5902
+ fileName: _jsxFileName$U,
5853
5903
  lineNumber: 280,
5854
5904
  columnNumber: 17
5855
5905
  }
@@ -5871,8 +5921,8 @@
5871
5921
  dismissAfter: 5000
5872
5922
  };
5873
5923
 
5874
- const _excluded$r = ["preventDuplicate"];
5875
- var _jsxFileName$S = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
5924
+ const _excluded$s = ["preventDuplicate"];
5925
+ var _jsxFileName$T = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/ToastContainer.js";
5876
5926
  const ToastBox = styled(Flex$1, {
5877
5927
  position: 'fixed',
5878
5928
  variants: {
@@ -5919,7 +5969,7 @@
5919
5969
  },
5920
5970
  __self: undefined,
5921
5971
  __source: {
5922
- fileName: _jsxFileName$S,
5972
+ fileName: _jsxFileName$T,
5923
5973
  lineNumber: 43,
5924
5974
  columnNumber: 5
5925
5975
  }
@@ -5927,7 +5977,7 @@
5927
5977
  position: position,
5928
5978
  __self: undefined,
5929
5979
  __source: {
5930
- fileName: _jsxFileName$S,
5980
+ fileName: _jsxFileName$T,
5931
5981
  lineNumber: 44,
5932
5982
  columnNumber: 7
5933
5983
  }
@@ -5935,14 +5985,14 @@
5935
5985
  const {
5936
5986
  preventDuplicate
5937
5987
  } = item,
5938
- toast = _objectWithoutPropertiesLoose(item, _excluded$r);
5988
+ toast = _objectWithoutPropertiesLoose(item, _excluded$s);
5939
5989
  return /*#__PURE__*/React__namespace.createElement(Toast, _extends({
5940
5990
  key: preventDuplicate ? toast.id : `${toast.id}-${index}`,
5941
5991
  onRemove: () => removeToast(toast.id)
5942
5992
  }, toast, {
5943
5993
  __self: undefined,
5944
5994
  __source: {
5945
- fileName: _jsxFileName$S,
5995
+ fileName: _jsxFileName$T,
5946
5996
  lineNumber: 47,
5947
5997
  columnNumber: 18
5948
5998
  }
@@ -7193,8 +7243,8 @@
7193
7243
  return message;
7194
7244
  };
7195
7245
 
7196
- const _excluded$q = ["id", "disabledOfflineIntercept"];
7197
- var _jsxFileName$R = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
7246
+ const _excluded$r = ["id", "disabledOfflineIntercept"];
7247
+ var _jsxFileName$S = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/toast/context/ToastProvider.js";
7198
7248
  let toastCount = 0;
7199
7249
  const ToastProvider = ({
7200
7250
  children,
@@ -7223,7 +7273,7 @@
7223
7273
  id,
7224
7274
  disabledOfflineIntercept
7225
7275
  } = toast,
7226
- rest = _objectWithoutPropertiesLoose(toast, _excluded$q);
7276
+ rest = _objectWithoutPropertiesLoose(toast, _excluded$r);
7227
7277
 
7228
7278
  // eslint-disable-next-line no-plusplus
7229
7279
  const uniqueId = ++toastCount;
@@ -7263,7 +7313,7 @@
7263
7313
  },
7264
7314
  __self: undefined,
7265
7315
  __source: {
7266
- fileName: _jsxFileName$R,
7316
+ fileName: _jsxFileName$S,
7267
7317
  lineNumber: 81,
7268
7318
  columnNumber: 5
7269
7319
  }
@@ -7272,7 +7322,7 @@
7272
7322
  position: TOP_RIGHT_POSITION,
7273
7323
  __self: undefined,
7274
7324
  __source: {
7275
- fileName: _jsxFileName$R,
7325
+ fileName: _jsxFileName$S,
7276
7326
  lineNumber: 83,
7277
7327
  columnNumber: 7
7278
7328
  }
@@ -7281,7 +7331,7 @@
7281
7331
  position: TOP_LEFT_POSITION,
7282
7332
  __self: undefined,
7283
7333
  __source: {
7284
- fileName: _jsxFileName$R,
7334
+ fileName: _jsxFileName$S,
7285
7335
  lineNumber: 87,
7286
7336
  columnNumber: 7
7287
7337
  }
@@ -7290,7 +7340,7 @@
7290
7340
  position: BOTTOM_RIGHT_POSITION,
7291
7341
  __self: undefined,
7292
7342
  __source: {
7293
- fileName: _jsxFileName$R,
7343
+ fileName: _jsxFileName$S,
7294
7344
  lineNumber: 91,
7295
7345
  columnNumber: 7
7296
7346
  }
@@ -7299,7 +7349,7 @@
7299
7349
  position: BOTTOM_LEFT_POSITION,
7300
7350
  __self: undefined,
7301
7351
  __source: {
7302
- fileName: _jsxFileName$R,
7352
+ fileName: _jsxFileName$S,
7303
7353
  lineNumber: 95,
7304
7354
  columnNumber: 7
7305
7355
  }
@@ -7312,8 +7362,8 @@
7312
7362
  children
7313
7363
  }) => condition ? wrapper(children) : children;
7314
7364
 
7315
- const _excluded$p = ["count", "maxCount", "css"];
7316
- var _jsxFileName$Q = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
7365
+ const _excluded$q = ["count", "maxCount", "css"];
7366
+ var _jsxFileName$R = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormGroup/FormGroup.js";
7317
7367
  const formLabelClassStyle = {
7318
7368
  alignItems: 'start !important',
7319
7369
  '& > div': {
@@ -7416,7 +7466,7 @@
7416
7466
  maxCount,
7417
7467
  css
7418
7468
  } = _ref,
7419
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7469
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7420
7470
  const withCounter = Boolean(count || maxCount);
7421
7471
  return /*#__PURE__*/React__default["default"].createElement(ConditionalWrapper, {
7422
7472
  condition: withCounter,
@@ -7425,7 +7475,7 @@
7425
7475
  css: css,
7426
7476
  __self: undefined,
7427
7477
  __source: {
7428
- fileName: _jsxFileName$Q,
7478
+ fileName: _jsxFileName$R,
7429
7479
  lineNumber: 115,
7430
7480
  columnNumber: 9
7431
7481
  }
@@ -7438,14 +7488,14 @@
7438
7488
  },
7439
7489
  __self: undefined,
7440
7490
  __source: {
7441
- fileName: _jsxFileName$Q,
7491
+ fileName: _jsxFileName$R,
7442
7492
  lineNumber: 116,
7443
7493
  columnNumber: 11
7444
7494
  }
7445
7495
  }, count, "/", maxCount), children),
7446
7496
  __self: undefined,
7447
7497
  __source: {
7448
- fileName: _jsxFileName$Q,
7498
+ fileName: _jsxFileName$R,
7449
7499
  lineNumber: 112,
7450
7500
  columnNumber: 5
7451
7501
  }
@@ -7455,7 +7505,7 @@
7455
7505
  }, props, {
7456
7506
  __self: undefined,
7457
7507
  __source: {
7458
- fileName: _jsxFileName$Q,
7508
+ fileName: _jsxFileName$R,
7459
7509
  lineNumber: 123,
7460
7510
  columnNumber: 7
7461
7511
  }
@@ -7463,8 +7513,8 @@
7463
7513
  };
7464
7514
  FormGroup.displayName = 'FormGroup';
7465
7515
 
7466
- const _excluded$o = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7467
- var _jsxFileName$P = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
7516
+ const _excluded$p = ["children", "htmlFor", "variant", "variants", "tooltipLabel", "count", "maxCount", "labelCss"];
7517
+ var _jsxFileName$Q = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormLabel/Label.js";
7468
7518
  const StyledLabel$1 = styled(LabelPrimitive__namespace.Root, Text$1, {
7469
7519
  display: 'inline-block',
7470
7520
  fontSize: '$label',
@@ -7496,13 +7546,13 @@
7496
7546
  maxCount,
7497
7547
  labelCss
7498
7548
  } = _ref,
7499
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7549
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7500
7550
  return /*#__PURE__*/React__default["default"].createElement(Flex$1, {
7501
7551
  justify: "between",
7502
7552
  className: "form-label",
7503
7553
  __self: undefined,
7504
7554
  __source: {
7505
- fileName: _jsxFileName$P,
7555
+ fileName: _jsxFileName$Q,
7506
7556
  lineNumber: 36,
7507
7557
  columnNumber: 5
7508
7558
  }
@@ -7512,7 +7562,7 @@
7512
7562
  }, props, {
7513
7563
  __self: undefined,
7514
7564
  __source: {
7515
- fileName: _jsxFileName$P,
7565
+ fileName: _jsxFileName$Q,
7516
7566
  lineNumber: 37,
7517
7567
  columnNumber: 7
7518
7568
  }
@@ -7522,7 +7572,7 @@
7522
7572
  css: labelCss,
7523
7573
  __self: undefined,
7524
7574
  __source: {
7525
- fileName: _jsxFileName$P,
7575
+ fileName: _jsxFileName$Q,
7526
7576
  lineNumber: 38,
7527
7577
  columnNumber: 9
7528
7578
  }
@@ -7537,7 +7587,7 @@
7537
7587
  },
7538
7588
  __self: undefined,
7539
7589
  __source: {
7540
- fileName: _jsxFileName$P,
7590
+ fileName: _jsxFileName$Q,
7541
7591
  lineNumber: 42,
7542
7592
  columnNumber: 11
7543
7593
  }
@@ -7545,14 +7595,14 @@
7545
7595
  label: tooltipLabel,
7546
7596
  __self: undefined,
7547
7597
  __source: {
7548
- fileName: _jsxFileName$P,
7598
+ fileName: _jsxFileName$Q,
7549
7599
  lineNumber: 56,
7550
7600
  columnNumber: 11
7551
7601
  }
7552
7602
  }, /*#__PURE__*/React__default["default"].createElement(StyledHelpIcon, {
7553
7603
  __self: undefined,
7554
7604
  __source: {
7555
- fileName: _jsxFileName$P,
7605
+ fileName: _jsxFileName$Q,
7556
7606
  lineNumber: 57,
7557
7607
  columnNumber: 13
7558
7608
  }
@@ -7561,7 +7611,7 @@
7561
7611
  color: "disable",
7562
7612
  __self: undefined,
7563
7613
  __source: {
7564
- fileName: _jsxFileName$P,
7614
+ fileName: _jsxFileName$Q,
7565
7615
  lineNumber: 62,
7566
7616
  columnNumber: 9
7567
7617
  }
@@ -7580,8 +7630,8 @@
7580
7630
  };
7581
7631
  FormLabel.displayName = 'FormLabel';
7582
7632
 
7583
- const _excluded$n = ["children", "error", "errorMessage"];
7584
- var _jsxFileName$O = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
7633
+ const _excluded$o = ["children", "error", "errorMessage"];
7634
+ var _jsxFileName$P = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/FormHelper/Helper.js";
7585
7635
  const StyledHelper = styled(Text$1, {
7586
7636
  display: 'inline-block',
7587
7637
  color: '$textSecondary',
@@ -7599,7 +7649,7 @@
7599
7649
  error,
7600
7650
  errorMessage
7601
7651
  } = _ref,
7602
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7652
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7603
7653
  const errorByMessage = !!errorMessage;
7604
7654
  if (error === undefined && errorByMessage) {
7605
7655
  return /*#__PURE__*/React__default["default"].createElement(StyledHelper, _extends({
@@ -7609,7 +7659,7 @@
7609
7659
  }, props, {
7610
7660
  __self: undefined,
7611
7661
  __source: {
7612
- fileName: _jsxFileName$O,
7662
+ fileName: _jsxFileName$P,
7613
7663
  lineNumber: 22,
7614
7664
  columnNumber: 7
7615
7665
  }
@@ -7625,7 +7675,7 @@
7625
7675
  }, props, {
7626
7676
  __self: undefined,
7627
7677
  __source: {
7628
- fileName: _jsxFileName$O,
7678
+ fileName: _jsxFileName$P,
7629
7679
  lineNumber: 31,
7630
7680
  columnNumber: 5
7631
7681
  }
@@ -7636,7 +7686,7 @@
7636
7686
  };
7637
7687
  FormHelper.displayName = 'FormHelper';
7638
7688
 
7639
- var _jsxFileName$N = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
7689
+ var _jsxFileName$O = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/CheckboxGroup.js";
7640
7690
  const CheckboxContext = /*#__PURE__*/React.createContext();
7641
7691
  const CheckboxGroup = ({
7642
7692
  children,
@@ -7677,7 +7727,7 @@
7677
7727
  value: values,
7678
7728
  __self: undefined,
7679
7729
  __source: {
7680
- fileName: _jsxFileName$N,
7730
+ fileName: _jsxFileName$O,
7681
7731
  lineNumber: 35,
7682
7732
  columnNumber: 5
7683
7733
  }
@@ -7694,7 +7744,7 @@
7694
7744
  };
7695
7745
  CheckboxGroup.displayName = 'CheckboxGroup';
7696
7746
 
7697
- var _jsxFileName$M = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
7747
+ var _jsxFileName$N = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/CheckOutline.js";
7698
7748
  const CheckOutline$1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
7699
7749
  xmlns: "http://www.w3.org/2000/svg",
7700
7750
  xmlSpace: "preserve",
@@ -7711,7 +7761,7 @@
7711
7761
  }, props, {
7712
7762
  __self: undefined,
7713
7763
  __source: {
7714
- fileName: _jsxFileName$M,
7764
+ fileName: _jsxFileName$N,
7715
7765
  lineNumber: 4,
7716
7766
  columnNumber: 3
7717
7767
  }
@@ -7723,7 +7773,7 @@
7723
7773
  },
7724
7774
  __self: undefined,
7725
7775
  __source: {
7726
- fileName: _jsxFileName$M,
7776
+ fileName: _jsxFileName$N,
7727
7777
  lineNumber: 19,
7728
7778
  columnNumber: 5
7729
7779
  }
@@ -7735,13 +7785,13 @@
7735
7785
  },
7736
7786
  __self: undefined,
7737
7787
  __source: {
7738
- fileName: _jsxFileName$M,
7788
+ fileName: _jsxFileName$N,
7739
7789
  lineNumber: 26,
7740
7790
  columnNumber: 5
7741
7791
  }
7742
7792
  }));
7743
7793
 
7744
- var _jsxFileName$L = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
7794
+ var _jsxFileName$M = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/icon/MinusOutline.js";
7745
7795
  const SvgMinusOutline = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
7746
7796
  xmlns: "http://www.w3.org/2000/svg",
7747
7797
  xmlSpace: "preserve",
@@ -7758,7 +7808,7 @@
7758
7808
  }, props, {
7759
7809
  __self: undefined,
7760
7810
  __source: {
7761
- fileName: _jsxFileName$L,
7811
+ fileName: _jsxFileName$M,
7762
7812
  lineNumber: 4,
7763
7813
  columnNumber: 3
7764
7814
  }
@@ -7770,7 +7820,7 @@
7770
7820
  },
7771
7821
  __self: undefined,
7772
7822
  __source: {
7773
- fileName: _jsxFileName$L,
7823
+ fileName: _jsxFileName$M,
7774
7824
  lineNumber: 19,
7775
7825
  columnNumber: 5
7776
7826
  }
@@ -7782,14 +7832,14 @@
7782
7832
  d: "M14.31 10.41H3.9v-2.6h10.41z",
7783
7833
  __self: undefined,
7784
7834
  __source: {
7785
- fileName: _jsxFileName$L,
7835
+ fileName: _jsxFileName$M,
7786
7836
  lineNumber: 26,
7787
7837
  columnNumber: 5
7788
7838
  }
7789
7839
  }));
7790
7840
 
7791
- const _excluded$m = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7792
- var _jsxFileName$K = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
7841
+ const _excluded$n = ["id", "checked", "indeterminate", "disabled", "onCheckedChange", "label", "index", "value"];
7842
+ var _jsxFileName$L = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputCheckbox/InputCheckbox.js";
7793
7843
  const StyledIndicator$2 = styled(CheckboxPrimitive__namespace.Indicator, {
7794
7844
  alignItems: 'center',
7795
7845
  display: 'flex',
@@ -7847,7 +7897,7 @@
7847
7897
  index,
7848
7898
  value
7849
7899
  } = _ref,
7850
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
7900
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
7851
7901
  const context = React.useContext(CheckboxContext);
7852
7902
  const [isChecked, setChecked] = React.useState(false);
7853
7903
  React.useEffect(() => {
@@ -7868,28 +7918,28 @@
7868
7918
  }, props, {
7869
7919
  __self: undefined,
7870
7920
  __source: {
7871
- fileName: _jsxFileName$K,
7921
+ fileName: _jsxFileName$L,
7872
7922
  lineNumber: 64,
7873
7923
  columnNumber: 5
7874
7924
  }
7875
7925
  }), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$2, {
7876
7926
  __self: undefined,
7877
7927
  __source: {
7878
- fileName: _jsxFileName$K,
7928
+ fileName: _jsxFileName$L,
7879
7929
  lineNumber: 77,
7880
7930
  columnNumber: 7
7881
7931
  }
7882
7932
  }, indeterminate ? /*#__PURE__*/React__default["default"].createElement(SvgMinusOutline, {
7883
7933
  __self: undefined,
7884
7934
  __source: {
7885
- fileName: _jsxFileName$K,
7935
+ fileName: _jsxFileName$L,
7886
7936
  lineNumber: 77,
7887
7937
  columnNumber: 41
7888
7938
  }
7889
7939
  }) : /*#__PURE__*/React__default["default"].createElement(CheckOutline$1, {
7890
7940
  __self: undefined,
7891
7941
  __source: {
7892
- fileName: _jsxFileName$K,
7942
+ fileName: _jsxFileName$L,
7893
7943
  lineNumber: 77,
7894
7944
  columnNumber: 60
7895
7945
  }
@@ -7902,14 +7952,14 @@
7902
7952
  gap: 4,
7903
7953
  __self: undefined,
7904
7954
  __source: {
7905
- fileName: _jsxFileName$K,
7955
+ fileName: _jsxFileName$L,
7906
7956
  lineNumber: 84,
7907
7957
  columnNumber: 5
7908
7958
  }
7909
7959
  }, /*#__PURE__*/React__default["default"].createElement(Checkbox, _extends({}, props, {
7910
7960
  __self: undefined,
7911
7961
  __source: {
7912
- fileName: _jsxFileName$K,
7962
+ fileName: _jsxFileName$L,
7913
7963
  lineNumber: 85,
7914
7964
  columnNumber: 7
7915
7965
  }
@@ -7925,14 +7975,14 @@
7925
7975
  },
7926
7976
  __self: undefined,
7927
7977
  __source: {
7928
- fileName: _jsxFileName$K,
7978
+ fileName: _jsxFileName$L,
7929
7979
  lineNumber: 86,
7930
7980
  columnNumber: 7
7931
7981
  }
7932
7982
  }, props.label)) : /*#__PURE__*/React__default["default"].createElement(Checkbox, _extends({}, props, {
7933
7983
  __self: undefined,
7934
7984
  __source: {
7935
- fileName: _jsxFileName$K,
7985
+ fileName: _jsxFileName$L,
7936
7986
  lineNumber: 101,
7937
7987
  columnNumber: 5
7938
7988
  }
@@ -7949,8 +7999,8 @@
7949
7999
  };
7950
8000
  InputCheckbox.displayName = 'InputCheckbox';
7951
8001
 
7952
- const _excluded$l = ["children", "size"];
7953
- var _jsxFileName$J = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
8002
+ const _excluded$m = ["children", "size"];
8003
+ var _jsxFileName$K = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputGroup/InputGroup.js";
7954
8004
  const InputGroupStyle = styled('div', {
7955
8005
  display: 'flex',
7956
8006
  width: '100%',
@@ -8089,7 +8139,7 @@
8089
8139
  children,
8090
8140
  size = 'lg'
8091
8141
  } = _ref,
8092
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8142
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$m);
8093
8143
  const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8094
8144
  const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
8095
8145
  const clone = children.map((child, index) => {
@@ -8112,7 +8162,7 @@
8112
8162
  isElement: isElement,
8113
8163
  __self: undefined,
8114
8164
  __source: {
8115
- fileName: _jsxFileName$J,
8165
+ fileName: _jsxFileName$K,
8116
8166
  lineNumber: 169,
8117
8167
  columnNumber: 10
8118
8168
  }
@@ -8288,8 +8338,8 @@
8288
8338
  children: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].node])
8289
8339
  };
8290
8340
 
8291
- const _excluded$k = ["disabled", "readOnly"];
8292
- var _jsxFileName$I = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
8341
+ const _excluded$l = ["disabled", "readOnly"];
8342
+ var _jsxFileName$J = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputText/InputText.js";
8293
8343
  const disabledStyle = {
8294
8344
  backgroundColor: '$formDisable',
8295
8345
  color: '$textDisable',
@@ -8462,7 +8512,7 @@
8462
8512
  disabled,
8463
8513
  readOnly
8464
8514
  } = _ref,
8465
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8515
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8466
8516
  return /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({
8467
8517
  ref: ref,
8468
8518
  disabled: disabled,
@@ -8472,7 +8522,7 @@
8472
8522
  }, props, {
8473
8523
  __self: undefined,
8474
8524
  __source: {
8475
- fileName: _jsxFileName$I,
8525
+ fileName: _jsxFileName$J,
8476
8526
  lineNumber: 185,
8477
8527
  columnNumber: 3
8478
8528
  }
@@ -8490,8 +8540,8 @@
8490
8540
  };
8491
8541
  InputText.displayName = 'InputText';
8492
8542
 
8493
- const _excluded$j = ["disabled", "readOnly"];
8494
- var _jsxFileName$H = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
8543
+ const _excluded$k = ["disabled", "readOnly"];
8544
+ var _jsxFileName$I = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputTextArea/InputTextArea.js";
8495
8545
  const StyledTextArea = styled(StyledInput$1, {
8496
8546
  variants: {
8497
8547
  size: {
@@ -8512,7 +8562,7 @@
8512
8562
  disabled,
8513
8563
  readOnly
8514
8564
  } = _ref,
8515
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8565
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
8516
8566
  const textareaRef = React.useRef(null);
8517
8567
  React.useEffect(() => {
8518
8568
  if (textareaRef.current) {
@@ -8546,7 +8596,7 @@
8546
8596
  }, props, {
8547
8597
  __self: undefined,
8548
8598
  __source: {
8549
- fileName: _jsxFileName$H,
8599
+ fileName: _jsxFileName$I,
8550
8600
  lineNumber: 51,
8551
8601
  columnNumber: 5
8552
8602
  }
@@ -8569,21 +8619,21 @@
8569
8619
 
8570
8620
  const InputRadioContext = /*#__PURE__*/React__default["default"].createContext();
8571
8621
 
8572
- var _jsxFileName$G = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
8622
+ var _jsxFileName$H = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadioGroup.js";
8573
8623
  const RadioGroup = styled(RadioGroupPrimitive__namespace.Root, Flex$1);
8574
8624
  function InputRadioGroup(props) {
8575
8625
  return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default["default"].createElement(InputRadioContext.Provider, {
8576
8626
  value: props,
8577
8627
  __self: this,
8578
8628
  __source: {
8579
- fileName: _jsxFileName$G,
8629
+ fileName: _jsxFileName$H,
8580
8630
  lineNumber: 13,
8581
8631
  columnNumber: 7
8582
8632
  }
8583
8633
  }, /*#__PURE__*/React__default["default"].createElement(RadioGroup, _extends({}, props, {
8584
8634
  __self: this,
8585
8635
  __source: {
8586
- fileName: _jsxFileName$G,
8636
+ fileName: _jsxFileName$H,
8587
8637
  lineNumber: 14,
8588
8638
  columnNumber: 9
8589
8639
  }
@@ -8602,8 +8652,8 @@
8602
8652
  };
8603
8653
  InputRadioGroup.displayName = 'InputRadioGroup';
8604
8654
 
8605
- const _excluded$i = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8606
- var _jsxFileName$F = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
8655
+ const _excluded$j = ["id", "disabled", "css", "inputType", "inputProps", "description", "readOnly"];
8656
+ var _jsxFileName$G = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputRadio/InputRadio.js";
8607
8657
  const INDICATOR_BASE_STYLES = {
8608
8658
  alignItems: 'center',
8609
8659
  display: 'flex',
@@ -8768,7 +8818,7 @@
8768
8818
  description,
8769
8819
  readOnly
8770
8820
  } = _ref,
8771
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8821
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8772
8822
  function renderInputType(type, checkedValue, onValueChange) {
8773
8823
  switch (type) {
8774
8824
  case 'number':
@@ -8781,7 +8831,7 @@
8781
8831
  asChild: true,
8782
8832
  __self: this,
8783
8833
  __source: {
8784
- fileName: _jsxFileName$F,
8834
+ fileName: _jsxFileName$G,
8785
8835
  lineNumber: 171,
8786
8836
  columnNumber: 11
8787
8837
  }
@@ -8797,7 +8847,7 @@
8797
8847
  asChild: true,
8798
8848
  __self: this,
8799
8849
  __source: {
8800
- fileName: _jsxFileName$F,
8850
+ fileName: _jsxFileName$G,
8801
8851
  lineNumber: 184,
8802
8852
  columnNumber: 11
8803
8853
  }
@@ -8816,7 +8866,7 @@
8816
8866
  },
8817
8867
  __self: this,
8818
8868
  __source: {
8819
- fileName: _jsxFileName$F,
8869
+ fileName: _jsxFileName$G,
8820
8870
  lineNumber: 198,
8821
8871
  columnNumber: 11
8822
8872
  }
@@ -8826,7 +8876,7 @@
8826
8876
  return /*#__PURE__*/React__default["default"].createElement(InputRadioContext.Consumer, {
8827
8877
  __self: undefined,
8828
8878
  __source: {
8829
- fileName: _jsxFileName$F,
8879
+ fileName: _jsxFileName$G,
8830
8880
  lineNumber: 217,
8831
8881
  columnNumber: 5
8832
8882
  }
@@ -8843,7 +8893,7 @@
8843
8893
  outlined: outlined,
8844
8894
  __self: undefined,
8845
8895
  __source: {
8846
- fileName: _jsxFileName$F,
8896
+ fileName: _jsxFileName$G,
8847
8897
  lineNumber: 222,
8848
8898
  columnNumber: 11
8849
8899
  }
@@ -8858,7 +8908,7 @@
8858
8908
  css: css,
8859
8909
  __self: undefined,
8860
8910
  __source: {
8861
- fileName: _jsxFileName$F,
8911
+ fileName: _jsxFileName$G,
8862
8912
  lineNumber: 223,
8863
8913
  columnNumber: 13
8864
8914
  }
@@ -8867,7 +8917,7 @@
8867
8917
  gap: 4,
8868
8918
  __self: undefined,
8869
8919
  __source: {
8870
- fileName: _jsxFileName$F,
8920
+ fileName: _jsxFileName$G,
8871
8921
  lineNumber: 233,
8872
8922
  columnNumber: 15
8873
8923
  }
@@ -8878,14 +8928,14 @@
8878
8928
  }, props, {
8879
8929
  __self: undefined,
8880
8930
  __source: {
8881
- fileName: _jsxFileName$F,
8931
+ fileName: _jsxFileName$G,
8882
8932
  lineNumber: 234,
8883
8933
  columnNumber: 17
8884
8934
  }
8885
8935
  }), /*#__PURE__*/React__default["default"].createElement(StyledIndicator$1, {
8886
8936
  __self: undefined,
8887
8937
  __source: {
8888
- fileName: _jsxFileName$F,
8938
+ fileName: _jsxFileName$G,
8889
8939
  lineNumber: 235,
8890
8940
  columnNumber: 19
8891
8941
  }
@@ -8897,7 +8947,7 @@
8897
8947
  },
8898
8948
  __self: undefined,
8899
8949
  __source: {
8900
- fileName: _jsxFileName$F,
8950
+ fileName: _jsxFileName$G,
8901
8951
  lineNumber: 240,
8902
8952
  columnNumber: 17
8903
8953
  }
@@ -10971,8 +11021,8 @@
10971
11021
  }(React__default["default"].Component);
10972
11022
  NumberFormat.defaultProps = defaultProps;
10973
11023
 
10974
- const _excluded$h = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
10975
- var _jsxFileName$E = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
11024
+ const _excluded$i = ["placeholder", "value", "size", "isInvalid", "readOnly", "disabled", "control", "name", "maxValueLength", "maxLength", "thousandSeparator"];
11025
+ var _jsxFileName$F = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/form/components/InputNumber/InputNumber.js";
10976
11026
  const StyledInput = styled(NumberFormat, {
10977
11027
  // Reset
10978
11028
  appearance: 'none',
@@ -11167,7 +11217,7 @@
11167
11217
  maxLength,
11168
11218
  thousandSeparator
11169
11219
  } = _ref,
11170
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11220
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
11171
11221
  return /*#__PURE__*/React__default["default"].createElement(ConditionalWrapper, {
11172
11222
  condition: Boolean(control),
11173
11223
  wrapper: child => /*#__PURE__*/React__default["default"].createElement(reactHookForm.Controller, {
@@ -11185,14 +11235,14 @@
11185
11235
  }),
11186
11236
  __self: undefined,
11187
11237
  __source: {
11188
- fileName: _jsxFileName$E,
11238
+ fileName: _jsxFileName$F,
11189
11239
  lineNumber: 225,
11190
11240
  columnNumber: 9
11191
11241
  }
11192
11242
  }),
11193
11243
  __self: undefined,
11194
11244
  __source: {
11195
- fileName: _jsxFileName$E,
11245
+ fileName: _jsxFileName$F,
11196
11246
  lineNumber: 222,
11197
11247
  columnNumber: 5
11198
11248
  }
@@ -11210,7 +11260,7 @@
11210
11260
  }, props, {
11211
11261
  __self: undefined,
11212
11262
  __source: {
11213
- fileName: _jsxFileName$E,
11263
+ fileName: _jsxFileName$F,
11214
11264
  lineNumber: 234,
11215
11265
  columnNumber: 7
11216
11266
  }
@@ -11232,7 +11282,9 @@
11232
11282
  InputNumber.name = 'InputText';
11233
11283
  InputNumber.displayName = 'InputNumber';
11234
11284
 
11235
- var TagWrapper$4 = styled('div', {
11285
+ const _excluded$h = ["className", "children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"];
11286
+ var _jsxFileName$E = "/Users/hangga/sourcecode/majoo-ui/packages/react/src/components/tag/Tag.js";
11287
+ const TagWrapper$4 = styled('div', {
11236
11288
  boxSizing: 'border-box',
11237
11289
  listStyle: 'none',
11238
11290
  display: 'inline-flex',
@@ -11274,10 +11326,6 @@
11274
11326
  }
11275
11327
  },
11276
11328
  type: {
11277
- default: {
11278
- background: '$bgGray',
11279
- color: '$textPrimary'
11280
- },
11281
11329
  success: {
11282
11330
  background: '$bgSuccess',
11283
11331
  color: '$textGreen'
@@ -11294,13 +11342,13 @@
11294
11342
  }
11295
11343
  }
11296
11344
  });
11297
- var TagComponent$1 = styled('span', {
11345
+ const TagComponent$1 = styled('span', {
11298
11346
  textAlign: 'center',
11299
11347
  whiteSpace: 'nowrap',
11300
11348
  overflow: 'hidden',
11301
11349
  textOverflow: 'ellipsis'
11302
11350
  });
11303
- var StyledIconRight$1 = styled('div', {
11351
+ const StyledIconRight$1 = styled('div', {
11304
11352
  marginLeft: '6px',
11305
11353
  display: 'flex',
11306
11354
  verticalAlign: 'middle',
@@ -11320,51 +11368,89 @@
11320
11368
  }
11321
11369
  }
11322
11370
  });
11323
- var StyledIconLeft$3 = styled('div', {
11371
+ const StyledIconLeft$3 = styled('div', {
11324
11372
  margin: '0 3px',
11325
11373
  display: 'flex',
11326
11374
  verticalAlign: 'middle',
11327
11375
  alignItems: 'center',
11328
11376
  color: 'inherit'
11329
11377
  });
11330
- var Tag = /*#__PURE__*/React__default["default"].forwardRef(function (_a, ref) {
11331
- var children = _a.children,
11332
- onClick = _a.onClick,
11333
- size = _a.size,
11334
- icon = _a.icon,
11335
- isRemovable = _a.isRemovable,
11336
- disabled = _a.disabled,
11337
- type = _a.type,
11338
- onRemove = _a.onRemove,
11339
- readOnly = _a.readOnly,
11340
- props = __rest(_a, ["children", "onClick", "size", "icon", "isRemovable", "disabled", "type", "onRemove", "readOnly"]);
11341
- return jsxRuntime.jsxs(TagWrapper$4, __assign({
11378
+ const Tag = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
11379
+ let {
11380
+ children,
11381
+ onClick,
11382
+ size,
11383
+ icon,
11384
+ isRemovable,
11385
+ disabled,
11386
+ type,
11387
+ onRemove,
11388
+ readOnly
11389
+ } = _ref,
11390
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
11391
+ return /*#__PURE__*/React__default["default"].createElement(TagWrapper$4, _extends({
11342
11392
  ref: ref,
11343
11393
  onClick: onClick,
11344
11394
  size: size,
11345
11395
  disabled: disabled,
11346
11396
  type: type,
11347
- readOnly: readOnly
11397
+ readOnly: readOnly,
11398
+ css: Object.assign({}, props.css)
11348
11399
  }, props, {
11349
- children: [icon !== undefined ? jsxRuntime.jsx(StyledIconLeft$3, {
11350
- children: icon
11351
- }, void 0) : null, jsxRuntime.jsx(TagComponent$1, {
11352
- children: children
11353
- }, void 0), isRemovable ? jsxRuntime.jsx(StyledIconRight$1, __assign({
11354
- disabled: disabled,
11355
- onClick: onRemove,
11356
- readOnly: readOnly
11357
- }, {
11358
- children: jsxRuntime.jsx(icons.CloseOutline, {
11359
- size: 16,
11360
- color: colors$8.iconSecondary,
11361
- style: {
11362
- verticalAlign: 'middle'
11363
- }
11364
- }, void 0)
11365
- }), void 0) : null]
11366
- }), void 0);
11400
+ __self: undefined,
11401
+ __source: {
11402
+ fileName: _jsxFileName$E,
11403
+ lineNumber: 84,
11404
+ columnNumber: 7
11405
+ }
11406
+ }), icon !== undefined ? /*#__PURE__*/React__default["default"].createElement(StyledIconLeft$3, {
11407
+ __self: undefined,
11408
+ __source: {
11409
+ fileName: _jsxFileName$E,
11410
+ lineNumber: 94,
11411
+ columnNumber: 31
11412
+ }
11413
+ }, icon) : null, /*#__PURE__*/React__default["default"].createElement(TagComponent$1, {
11414
+ __self: undefined,
11415
+ __source: {
11416
+ fileName: _jsxFileName$E,
11417
+ lineNumber: 95,
11418
+ columnNumber: 9
11419
+ }
11420
+ }, children), isRemovable ? /*#__PURE__*/React__default["default"].createElement(StyledIconRight$1, {
11421
+ disabled: disabled,
11422
+ onClick: onRemove,
11423
+ readOnly: readOnly,
11424
+ __self: undefined,
11425
+ __source: {
11426
+ fileName: _jsxFileName$E,
11427
+ lineNumber: 97,
11428
+ columnNumber: 11
11429
+ }
11430
+ }, /*#__PURE__*/React__default["default"].createElement(icons.CloseOutline, {
11431
+ size: 16,
11432
+ color: colors$8.iconSecondary,
11433
+ style: {
11434
+ verticalAlign: 'middle'
11435
+ },
11436
+ __self: undefined,
11437
+ __source: {
11438
+ fileName: _jsxFileName$E,
11439
+ lineNumber: 98,
11440
+ columnNumber: 13
11441
+ }
11442
+ })) : null);
11367
11443
  });
11444
+ Tag.propTypes = {
11445
+ size: PropTypes__default["default"].string,
11446
+ disabled: PropTypes__default["default"].bool,
11447
+ type: PropTypes__default["default"].string,
11448
+ icon: PropTypes__default["default"].element,
11449
+ isRemovable: PropTypes__default["default"].bool,
11450
+ onRemove: PropTypes__default["default"].func,
11451
+ onClick: PropTypes__default["default"].func,
11452
+ readOnly: PropTypes__default["default"].bool
11453
+ };
11368
11454
  Tag.defaultProps = {
11369
11455
  size: 'sm',
11370
11456
  isRemovable: false,
@@ -20014,7 +20100,6 @@
20014
20100
  onClose = _a.onClose,
20015
20101
  mobileOnly = _a.mobileOnly,
20016
20102
  desktopOnly = _a.desktopOnly,
20017
- advanceOptions = _a.advanceOptions,
20018
20103
  drawerCss = _a.drawerCss,
20019
20104
  drawerContentCss = _a.drawerContentCss;
20020
20105
  var _g = reactI18next.useTranslation('MajooUI/datePicker'),
@@ -20110,22 +20195,20 @@
20110
20195
  }
20111
20196
  };
20112
20197
  var renderDatePicker = function renderDatePicker() {
20113
- var options = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
20114
- var advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
20115
20198
  var handleDatePickerChange = function handleDatePickerChange(value) {
20116
20199
  if (showRangeControl || type === 'range_picker') {
20117
20200
  if (rangePickerType === 'monthly') {
20118
20201
  dispatch({
20119
20202
  type: 'UPDATE',
20120
- payload: advancePickerReducer('RANGE_MONTH', value)
20203
+ payload: advancePickerDate('RANGE_MONTH', value)
20121
20204
  });
20122
- onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerReducer('RANGE_MONTH', value));
20205
+ onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_MONTH', value));
20123
20206
  } else {
20124
20207
  dispatch({
20125
20208
  type: 'UPDATE',
20126
- payload: advancePickerReducer('RANGE_WEEK', value)
20209
+ payload: advancePickerDate('RANGE_WEEK', value)
20127
20210
  });
20128
- onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerReducer('RANGE_WEEK', value));
20211
+ onChange === null || onChange === void 0 ? void 0 : onChange(advancePickerDate('RANGE_WEEK', value));
20129
20212
  }
20130
20213
  } else {
20131
20214
  dispatch({
@@ -20137,10 +20220,10 @@
20137
20220
  };
20138
20221
  return jsxRuntime.jsx(DatePicker, {
20139
20222
  advanceView: type === ADVANCE_PICKER && (!advanceView ? jsxRuntime.jsx(AdvancedOption, {
20140
- options: (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.options) || options,
20223
+ options: language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn,
20141
20224
  disabled: disabled,
20142
20225
  optionHandler: function (value) {
20143
- var reducedResult = advancePickerReducer(value, undefined);
20226
+ var reducedResult = advancePickerDate(value, undefined);
20144
20227
  var dateAsString = moment__default["default"](reducedResult[1]).format('YYYY-MM-DD');
20145
20228
  var payload = [reducedResult[0], moment__default["default"]("".concat(dateAsString, " 23:59"), 'YYYY-MM-DD HH:mm').toDate()];
20146
20229
  dispatch({
@@ -20409,23 +20492,21 @@
20409
20492
  readOnly = _e === void 0 ? false : _e,
20410
20493
  _f = _a.isInvalid,
20411
20494
  isInvalid = _f === void 0 ? false : _f,
20412
- css = _a.css,
20413
- advanceOptions = _a.advanceOptions;
20495
+ css = _a.css;
20414
20496
  var _g = reactI18next.useTranslation('translation'),
20415
20497
  t = _g.t,
20416
20498
  i18n = _g.i18n;
20417
20499
  var language = i18n.language;
20418
20500
  var pickerOptions = language === 'id' ? advancePickerOptionsId : advancePickerOptionsEn;
20419
- var advancePickerReducer = (advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.reducer) || advancePickerDate;
20420
20501
  return jsxRuntime.jsx(InputSelect, {
20421
- option: ((advanceOptions === null || advanceOptions === void 0 ? void 0 : advanceOptions.options) || pickerOptions).map(function (option) {
20502
+ option: pickerOptions.map(function (option) {
20422
20503
  return {
20423
20504
  name: option.label,
20424
20505
  value: option.value
20425
20506
  };
20426
20507
  }),
20427
20508
  onChange: function (selectedOption) {
20428
- if (onChange) onChange(advancePickerReducer(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
20509
+ if (onChange) onChange(advancePickerDate(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value, undefined));
20429
20510
  },
20430
20511
  placeholder: placeholder || t('placeholder.select', 'Pilih'),
20431
20512
  size: size,
@@ -52402,234 +52483,11 @@
52402
52483
  }, void 0)]
52403
52484
  }), void 0);
52404
52485
  }
52405
- var rotateKeyframe = keyframes({
52406
- '100%': {
52407
- transform: 'rotate(360deg)'
52408
- }
52409
- });
52410
- var dashKeyframe = keyframes({
52411
- '0%': {
52412
- strokeDasharray: '0,125',
52413
- strokeDashoffset: -8
52414
- },
52415
- '50%': {
52416
- strokeDasharray: 125,
52417
- strokeDashoffset: -10
52418
- },
52419
- '100%': {
52420
- strokeDasharray: 125,
52421
- strokeDashoffset: -125
52422
- }
52423
- });
52424
- var LoadingContainer = react.styled('div', {
52425
- position: 'absolute',
52426
- width: 152,
52427
- height: 152,
52428
- top: '50%',
52429
- left: '50%',
52430
- transform: 'translate(-50%,-50%)'
52431
- });
52432
- var LogoSvg = react.styled('svg', {
52433
- height: 152,
52434
- position: 'absolute',
52435
- width: 152
52436
- });
52437
- var LoadingSvg = react.styled('svg', {
52438
- animation: "".concat(rotateKeyframe, " 2s linear infinite"),
52439
- height: 152,
52440
- position: 'absolute',
52441
- width: 152,
52442
- top: '-22px'
52443
- });
52444
- var LoadingBackground = react.styled('div', {
52445
- background: 'conic-gradient(#fff5f6, #FF97A4, #02B4F3, #81CF77, #6D60AE, #FF6C53 320deg)',
52446
- width: '100%',
52447
- height: '100%'
52448
- });
52449
- var LoadingCircle = react.styled('circle', {
52450
- stroke: 'white',
52451
- strokeLinecap: 'round',
52452
- transformOrigin: '50% 50%',
52453
- transform: 'rotate(-102deg)',
52454
- animation: "".concat(dashKeyframe, " 1.5s ease-in-out infinite")
52455
- });
52456
- var LoadingLabel = react.styled(Paragraph, {
52457
- position: 'relative',
52458
- top: 100
52459
- });
52460
- function CircularLoadingBar(_a) {
52461
- var label = _a.label;
52462
- return jsxRuntime.jsxs(LoadingContainer, {
52463
- children: [jsxRuntime.jsxs(LogoSvg, __assign({
52464
- xmlns: "http://www.w3.org/2000/svg",
52465
- width: "152",
52466
- height: "152",
52467
- viewBox: "0 0 152 152",
52468
- fill: "none"
52469
- }, {
52470
- children: [jsxRuntime.jsxs("g", __assign({
52471
- filter: "url(#filter0_ddd_4303_695)"
52472
- }, {
52473
- children: [jsxRuntime.jsx("rect", {
52474
- x: "46.0004",
52475
- y: "23.9999",
52476
- width: "60",
52477
- height: "60",
52478
- rx: "30",
52479
- fill: "url(#paint0_linear_4303_695)"
52480
- }, void 0), jsxRuntime.jsx("rect", {
52481
- x: "46",
52482
- y: "24",
52483
- width: "60",
52484
- height: "60",
52485
- rx: "30",
52486
- stroke: "url(#paint1_linear_4303_695)",
52487
- "stroke-opacity": "0.99",
52488
- "stroke-width": "5"
52489
- }, void 0), jsxRuntime.jsx("path", {
52490
- "fill-rule": "evenodd",
52491
- "clip-rule": "evenodd",
52492
- 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",
52493
- fill: "white"
52494
- }, void 0)]
52495
- }), void 0), jsxRuntime.jsxs("defs", {
52496
- children: [jsxRuntime.jsxs("filter", __assign({
52497
- id: "filter0_ddd_4303_695",
52498
- x: "0.5",
52499
- y: "0.5",
52500
- width: "151",
52501
- height: "151",
52502
- filterUnits: "userSpaceOnUse",
52503
- "color-interpolation-filters": "sRGB"
52504
- }, {
52505
- children: [jsxRuntime.jsx("feFlood", {
52506
- "flood-opacity": "0",
52507
- result: "BackgroundImageFix"
52508
- }, void 0), jsxRuntime.jsx("feColorMatrix", {
52509
- in: "SourceAlpha",
52510
- type: "matrix",
52511
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
52512
- result: "hardAlpha"
52513
- }, void 0), jsxRuntime.jsx("feOffset", {
52514
- dy: "22"
52515
- }, void 0), jsxRuntime.jsx("feGaussianBlur", {
52516
- stdDeviation: "21.5"
52517
- }, void 0), jsxRuntime.jsx("feColorMatrix", {
52518
- type: "matrix",
52519
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
52520
- }, void 0), jsxRuntime.jsx("feBlend", {
52521
- mode: "normal",
52522
- in2: "BackgroundImageFix",
52523
- result: "effect1_dropShadow_4303_695"
52524
- }, void 0), jsxRuntime.jsx("feColorMatrix", {
52525
- in: "SourceAlpha",
52526
- type: "matrix",
52527
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
52528
- result: "hardAlpha"
52529
- }, void 0), jsxRuntime.jsx("feOffset", {
52530
- dy: "9"
52531
- }, void 0), jsxRuntime.jsx("feGaussianBlur", {
52532
- stdDeviation: "12"
52533
- }, void 0), jsxRuntime.jsx("feColorMatrix", {
52534
- type: "matrix",
52535
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"
52536
- }, void 0), jsxRuntime.jsx("feBlend", {
52537
- mode: "normal",
52538
- in2: "effect1_dropShadow_4303_695",
52539
- result: "effect2_dropShadow_4303_695"
52540
- }, void 0), jsxRuntime.jsx("feColorMatrix", {
52541
- in: "SourceAlpha",
52542
- type: "matrix",
52543
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
52544
- result: "hardAlpha"
52545
- }, void 0), jsxRuntime.jsx("feOffset", {
52546
- dy: "3"
52547
- }, void 0), jsxRuntime.jsx("feGaussianBlur", {
52548
- stdDeviation: "4.5"
52549
- }, void 0), jsxRuntime.jsx("feColorMatrix", {
52550
- type: "matrix",
52551
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"
52552
- }, void 0), jsxRuntime.jsx("feBlend", {
52553
- mode: "normal",
52554
- in2: "effect2_dropShadow_4303_695",
52555
- result: "effect3_dropShadow_4303_695"
52556
- }, void 0), jsxRuntime.jsx("feBlend", {
52557
- mode: "normal",
52558
- in: "SourceGraphic",
52559
- in2: "effect3_dropShadow_4303_695",
52560
- result: "shape"
52561
- }, void 0)]
52562
- }), void 0), jsxRuntime.jsxs("linearGradient", __assign({
52563
- id: "paint0_linear_4303_695",
52564
- x1: "76.0004",
52565
- y1: "23.9999",
52566
- x2: "76.0004",
52567
- y2: "83.9999",
52568
- gradientUnits: "userSpaceOnUse"
52569
- }, {
52570
- children: [jsxRuntime.jsx("stop", {
52571
- "stop-color": "#B3DCA7"
52572
- }, void 0), jsxRuntime.jsx("stop", {
52573
- offset: "1",
52574
- "stop-color": "#22BDB6"
52575
- }, void 0)]
52576
- }), void 0), jsxRuntime.jsxs("linearGradient", __assign({
52577
- id: "paint1_linear_4303_695",
52578
- x1: "106",
52579
- y1: "68.8332",
52580
- x2: "50",
52581
- y2: "37.3332",
52582
- gradientUnits: "userSpaceOnUse"
52583
- }, {
52584
- children: [jsxRuntime.jsx("stop", {
52585
- "stop-color": "#F4F4F4"
52586
- }, void 0), jsxRuntime.jsx("stop", {
52587
- offset: "1",
52588
- "stop-color": "white"
52589
- }, void 0)]
52590
- }), void 0)]
52591
- }, void 0)]
52592
- }), void 0), jsxRuntime.jsxs(LoadingSvg, __assign({
52593
- viewBox: "0 0 100 100",
52594
- xmlns: "http://www.w3.org/2000/svg"
52595
- }, {
52596
- children: [jsxRuntime.jsx("defs", {
52597
- children: jsxRuntime.jsx("mask", __assign({
52598
- id: "mask"
52599
- }, {
52600
- children: jsxRuntime.jsx(LoadingCircle, {
52601
- cx: "50",
52602
- cy: "50",
52603
- r: "20",
52604
- fill: "none",
52605
- "stroke-width": "4",
52606
- "stroke-miterlimit": "10"
52607
- }, void 0)
52608
- }), void 0)
52609
- }, void 0), jsxRuntime.jsx("foreignObject", __assign({
52610
- x: "0",
52611
- y: "0",
52612
- width: "100",
52613
- height: "100",
52614
- mask: "url(#mask)"
52615
- }, {
52616
- children: jsxRuntime.jsx(LoadingBackground, {}, void 0)
52617
- }), void 0)]
52618
- }), void 0), label && jsxRuntime.jsx(LoadingLabel, __assign({
52619
- color: "white",
52620
- align: "center"
52621
- }, {
52622
- children: label
52623
- }), void 0)]
52624
- }, void 0);
52625
- }
52626
52486
  var interval;
52627
52487
  function LoadingBar(props) {
52628
52488
  var show = props.show,
52629
52489
  onCompleted = props.onCompleted,
52630
- intervalTime = props.interval,
52631
- isPageLoader = props.isPageLoader,
52632
- pageLoaderLabel = props.pageLoaderLabel;
52490
+ intervalTime = props.interval;
52633
52491
  var _a = React.useState(0),
52634
52492
  progress = _a[0],
52635
52493
  setProgress = _a[1];
@@ -52662,34 +52520,6 @@
52662
52520
  onCompleted === null || onCompleted === void 0 ? void 0 : onCompleted();
52663
52521
  }
52664
52522
  }, [progress, onCompleted]);
52665
- if (!show) return jsxRuntime.jsx(React__default["default"].Fragment, {}, void 0);
52666
- if (isPageLoader) {
52667
- return jsxRuntime.jsx(ModalDialog, __assign({
52668
- open: show,
52669
- modal: true,
52670
- allowPinchZoom: false,
52671
- width: "100%",
52672
- layer: 2000,
52673
- isMobile: false,
52674
- css: {
52675
- borderRadius: '2px !important',
52676
- '& > div': {
52677
- backgroundColor: 'transparent !important',
52678
- borderRadius: '2px !important'
52679
- }
52680
- }
52681
- }, {
52682
- children: jsxRuntime.jsx(ModalDialogContent, __assign({
52683
- css: {
52684
- padding: '$spacing-08 $spacing-11'
52685
- }
52686
- }, {
52687
- children: jsxRuntime.jsx(CircularLoadingBar, {
52688
- label: pageLoaderLabel
52689
- }, void 0)
52690
- }), void 0)
52691
- }), void 0);
52692
- }
52693
52523
  return typeof (props === null || props === void 0 ? void 0 : props.progress) === 'number' ? jsxRuntime.jsx(PrimitiveLoadingBar, __assign({}, props, {
52694
52524
  visibility: true
52695
52525
  }), void 0) : jsxRuntime.jsx(PrimitiveLoadingBar, __assign({}, props, {
@@ -52702,8 +52532,7 @@
52702
52532
  show: false,
52703
52533
  interval: 100,
52704
52534
  description: 'Loading...',
52705
- size: 'md',
52706
- isPageLoader: false
52535
+ size: 'md'
52707
52536
  };
52708
52537
 
52709
52538
  var Container$4 = styled(Flex$1, {
@@ -53871,6 +53700,7 @@
53871
53700
  label: tooltipLabel(name, variants)
53872
53701
  }, {
53873
53702
  children: jsxRuntime.jsxs(Box, __assign({
53703
+ gap: 2,
53874
53704
  css: __assign({
53875
53705
  display: 'flex',
53876
53706
  alignItems: 'center',
@@ -53918,7 +53748,7 @@
53918
53748
  padding: '4px 8px',
53919
53749
  minWidth: 'unset',
53920
53750
  justifyContent: 'flex-start',
53921
- marginRight: 'auto'
53751
+ mr: 'auto'
53922
53752
  },
53923
53753
  type: "varian"
53924
53754
  }, {
@@ -57736,7 +57566,6 @@
57736
57566
  exports.PriceColumn = PriceColumn;
57737
57567
  exports.Progress = Progress$1;
57738
57568
  exports.ProgressIndicator = ProgressIndicator;
57739
- exports.Provider = Provider;
57740
57569
  exports.RANGE_CONTROL = RANGE_CONTROL;
57741
57570
  exports.RANGE_MONTH = RANGE_MONTH;
57742
57571
  exports.RANGE_PICKER = RANGE_PICKER;
@@ -57797,9 +57626,6 @@
57797
57626
  exports.ToastContext = ToastContext;
57798
57627
  exports.ToastProvider = ToastProvider;
57799
57628
  exports.Tooltip = Tooltip$1;
57800
- exports.TooltipBase = TooltipBase;
57801
- exports.TooltipContent = TooltipContent;
57802
- exports.TooltipTrigger = TooltipTrigger;
57803
57629
  exports.UPDATE_PICKER = UPDATE_PICKER;
57804
57630
  exports.Upload = Upload;
57805
57631
  exports.WEEKLY = WEEKLY;